We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have encountered servers that send content disposition headers with extra semicolons at the end, e.g.
Content-Disposition: inline; filename="foo.obj";
I understand this is technically non-conforming, but it still contains useful and easily correctly parsable information.
aiohttp should gracefully handle minor non-conformance and include the content_disposition with values. It can still emit a warning.
content_disposition
Fixing this in all broken servers is highly unlikely.
Client
Both chromium and wget --content-disposition treat these cases gracefully.
wget --content-disposition
It is a small change to continue here:
continue
aiohttp/aiohttp/multipart.py
Line 112 in a1158c5
Alternative solutions with increasing strictness would be to
I'm happy to create a PR with the preferred solution.
The text was updated successfully, but these errors were encountered:
I think option 2 covers most cases. Pull Request is welcome!
Sorry, something went wrong.
tilsche
No branches or pull requests
Is your feature request related to a problem?
I have encountered servers that send content disposition headers with extra semicolons at the end, e.g.
Content-Disposition: inline; filename="foo.obj";
I understand this is technically non-conforming, but it still contains useful and easily correctly parsable information.
Describe the solution you'd like
aiohttp should gracefully handle minor non-conformance and include the
content_disposition
with values. It can still emit a warning.Describe alternatives you've considered
Fixing this in all broken servers is highly unlikely.
Related component
Client
Additional context
Both chromium and
wget --content-disposition
treat these cases gracefully.It is a small change to
continue
here:aiohttp/aiohttp/multipart.py
Line 112 in a1158c5
Alternative solutions with increasing strictness would be to
I'm happy to create a PR with the preferred solution.
Code of Conduct
The text was updated successfully, but these errors were encountered: