-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Incorrect quoting in Content-Disposition headers? #520
Copy link
Copy link
Closed
Description
I've having a hard time grokking the various RFCs, but I just came across a service that refused to parse Content-Disposition lines like this:
CONTENT-DISPOSITION: form-data; name=file; filename="upload.gpx"; filename*=utf-8''upload.gpx
But accepted this:
CONTENT-DISPOSITION: form-data; name="file"; filename="upload.gpx"; filename*=utf-8''upload.gpx
The only difference being the quoting of the name parameter. Is aiohttp doing the right thing here? Is there a way to force quoting to happen?
Reactions are currently unavailable