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

Properly remove f.name usage in send_file #1988

Merged
merged 3 commits into from Aug 26, 2016

Conversation

@untitaker
Copy link
Member

commented Aug 20, 2016

Amend #1849


This change is Reviewable

@untitaker

This comment has been minimized.

Copy link
Member Author

commented Aug 20, 2016

There is a broken PR in master (#1849) that I've merged, I want somebody else to review this closely.

@untitaker

This comment has been minimized.

Copy link
Member Author

commented Aug 21, 2016

FWIW, the original discussion is #104 -- I'm torn about mimetype support.

@mitsuhiko

This comment has been minimized.

Copy link
Member

commented Aug 25, 2016

I'm okay removing etags I suppose but if we stop sending correct mimetypes that's not great.

@untitaker

This comment has been minimized.

Copy link
Member Author

commented Aug 25, 2016

We don't have to remove anything but usage of f.name attribute I think (as far as I understand this is the only thing that is actually broken design)

@untitaker untitaker force-pushed the fixup-1849 branch from 18c7c1a to db1c3cc Aug 25, 2016

@untitaker untitaker changed the title Actually remove etag and mimetype guessing Properly remove f.name usage in send_file Aug 25, 2016

@untitaker

This comment has been minimized.

Copy link
Member Author

commented Aug 25, 2016

@mitsuhiko Check it out now, a.) Doesn't use f.name b.) Doesn't silently omit MIME-types if none can be guessed but just fails.

@mitsuhiko

This comment has been minimized.

Copy link
Member

commented Aug 25, 2016

Looks good to me.


Reviewed 1 of 3 files at r1, 2 of 2 files at r2.
Review status: all files reviewed at latest revision, all discussions resolved, some commit checks failed.


Comments from Reviewable

@untitaker

This comment has been minimized.

Copy link
Member Author

commented Aug 25, 2016

Fixed tests. I wonder if we should still infer the attachment_filename from f.name.

@untitaker

This comment has been minimized.

Copy link
Member Author

commented Aug 26, 2016

Ah whatever.

@untitaker untitaker merged commit 71e10be into master Aug 26, 2016

2 of 3 checks passed

code-review/reviewable 1 file left
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details

@untitaker untitaker deleted the fixup-1849 branch Aug 26, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.