Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

response.attachment append a parameter: options from contentDisposition #1240

Merged
merged 4 commits into from
Oct 8, 2018

Conversation

zzzs
Copy link
Contributor

@zzzs zzzs commented Sep 9, 2018

response.attachment require content-disposition, and content-disposition supports option parameter to make some settings, so i hope attachment can also support it.

thanks !

@codecov
Copy link

codecov bot commented Sep 9, 2018

Codecov Report

Merging #1240 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff           @@
##           master   #1240   +/-   ##
======================================
  Coverage     100%    100%           
======================================
  Files           5       5           
  Lines         391     391           
======================================
  Hits          391     391
Impacted Files Coverage Δ
lib/response.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2180839...c3eb7e4. Read the comment docs.

@dead-horse
Copy link
Member

can you add a test case for this to avoid later changes modified this feature.

@zzzs
Copy link
Contributor Author

zzzs commented Sep 21, 2018

@dead-horse thanks, already done!

Copy link
Contributor

@fl0w fl0w left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -48,3 +48,138 @@ describe('ctx.attachment([filename])', () => {
});
});
});

// reference [content-disposition test case](https://github.com/jshttp/content-disposition/blob/master/test/test.js)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wouldn't make this comment md-style

@zzzs
Copy link
Contributor Author

zzzs commented Sep 21, 2018

Ok, I will do it two days later.

@zzzs
Copy link
Contributor Author

zzzs commented Sep 24, 2018

@fl0w already done!

Copy link
Contributor

@fl0w fl0w left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dead-horse dead-horse merged commit 9146024 into koajs:master Oct 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants