Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Content-Type Issue #29
I'm working with file uploads from Titanium. I spend a lot of type trying to find out the solution for the error:
unrecognized content-type:multipart/form-data; charset=utf-8; boundary=0xKhTmLbOuNdArY-019828C5-31F2-414B-9FC0-F68B537DD62D
Reading the source file I discover the match in line 104 uses CONTENT_TYPE_RE
I found the solution for this error was as simple as changing this variable to :
Not sure if this is an issue caused by a non-standard header from Titanium but I suspect its something this lib should add.
Sorry to comment on a closed issue, but I do not see why you say that it's handled from content-type when the fix for #31 applies only to content-disposition.
I had the exact same issue yesterday (on 2.2.0 admittedly) and solved it just as described above . I looked at the pull request for #31 and fails so see how upgrading to get this will help me. (I also checked the regex in HEAD and it still see the supposed issue).
Am I missing something ?
Hi Andrew, the one in the original issue is essentially the same but here is a capture from 5 minutes ago:
It blows up on charset as explained. The regexp in the original issue solved it but I don't remember from the HTTP standard whether the parameters would always be in the same order.