-
Notifications
You must be signed in to change notification settings - Fork 181
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
parse_multipart_form
does not parse "Content-Type" correctly.
#782
Comments
Okay, after investigating in #815, I've found that the failure to match comes from the
Somehow that makes this regex fail to match: infil> re_ct.re
r"(?i)Content-Type: (\S*[^;\s])"x
infil> header
"Content-Disposition: form-data; name=\"namevalue\"; filename=\"multipart.txt\"\r\nContent-Type: text/plain\r\n\r\n"
infil> occursin(r"(?i)Content-Type: (\S*[^;\s])"x, header)
false
infil> occursin(r"(?i)Content-Type: (\S*[^;\s])", header)
true Do you know what that |
Thanks! |
Julia 1.6.4
Forms with fields with content types other than
"text/plain"
don't seem to get parsed correctly. Here's an MRE:Note that the parsed
Multipart
hascontenttype="text/plain"
instead of"application/octet-stream"
The text was updated successfully, but these errors were encountered: