-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Add Content-Disposition to NamedFile (fixes #172) #204
Conversation
Hej @svenstaro in past we had some talk about this header with @fafhrd91 And more importantly it would be nice to have a way for user to configure it in place of automatic settings my actix-web itself. |
Alright fair enough but for now this would be an improvement over the current state for sure. |
@svenstaro could you use inline for images and text you can check mimetype by |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you use inline for images and text. you can check mimetype by get_mime_type(&ext.to_string_lossy(())
Codecov Report
@@ Coverage Diff @@
## master #204 +/- ##
==========================================
- Coverage 78.68% 78.27% -0.41%
==========================================
Files 91 90 -1
Lines 11164 11328 +164
==========================================
+ Hits 8784 8867 +83
- Misses 2380 2461 +81
Continue to review full report at Codecov.
|
@fafhrd91 fixed with tests. |
thanks |
I used the raw strings for the headers instead of stuff in
content_disposition.rs
because that is commented out and I don't know why that is.