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

Multipart content-type change #224

Merged
merged 1 commit into from
Apr 5, 2012
Merged

Multipart content-type change #224

merged 1 commit into from
Apr 5, 2012

Conversation

janjongboom
Copy link
Contributor

I am currently using request to do some multipart work and I notice that there are some parsers that don't like the way request formats it multipart headers. I especially think of Ruby, but it might be a coincidence.

The changes here are small and shouldn't break compatibility.

  1. In RFC1341 the quotes are omitted in all cases but one, when there was a space in the identifier. Let's remove that as some sucky parsers fall over it, it won't make a difference because according to RFC2045 the quotes are optional.
  2. I have no clue whether the the space after the ; is mandatory, I can't really find anything in the RFC's (but then again, I'm a sloppy reader), but I have noticed that some parsers (like CloudFoundry) break over this if the space is omitted.

mikeal added a commit that referenced this pull request Apr 5, 2012
Multipart content-type change
@mikeal mikeal merged commit d853e53 into request:master Apr 5, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants