Skip to content

the boundary contains " sometimes have bug#7

Merged
catwell merged 1 commit into
catwell:masterfrom
Gowa2017:master
Jul 16, 2020
Merged

the boundary contains " sometimes have bug#7
catwell merged 1 commit into
catwell:masterfrom
Gowa2017:master

Conversation

@Gowa2017
Copy link
Copy Markdown
Contributor

@Gowa2017 Gowa2017 commented Jul 5, 2020

the boundary contains " sometimes have bug

@catwell
Copy link
Copy Markdown
Owner

catwell commented Jul 6, 2020

The boundary cannot contain a quote character (see the code of gen_request).

Do you mean there is a bug in another piece of software (a Web server)? Can you give more details on the bug?

@Gowa2017
Copy link
Copy Markdown
Contributor Author

https://developers.de/blogs/damir_dobric/archive/2013/09/10/problems-with-webapi-multipart-content-upload-and-boundary-quot-quotes.aspx

Say RFC2046 allow boundry have quote, but not must .So some webserver doer not support this

@catwell
Copy link
Copy Markdown
Owner

catwell commented Jul 16, 2020

OK, I understand the problem.

This does not introduce a bug because the boundary here is always generated by gen_boundary and hence composed of letters and dashes, which are not separators in HTTP headers, so it is a token. Given that I see no reason not to merge. Thanks for your contribution!

@catwell catwell merged commit 4427a77 into catwell:master Jul 16, 2020
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.

2 participants