Skip to content

add \r\n to _lastBoundary()#109

Closed
tylergoodman wants to merge 1 commit intoform-data:masterfrom
tylergoodman:master
Closed

add \r\n to _lastBoundary()#109
tylergoodman wants to merge 1 commit intoform-data:masterfrom
tylergoodman:master

Conversation

@tylergoodman
Copy link
Copy Markdown

Some clients seem to be strict about this for some requests.

@alexindigo
Copy link
Copy Markdown
Member

Thank you for the interest. Can you elaborate on what kind of clients interact with Form-Data?

PS. Tests are failing.

@tylergoodman
Copy link
Copy Markdown
Author

By "client", I mean a recipient of a form-data request. While working on a project I ran into a server that wouldn't accept a request that didn't end in a CRLF. This problem was probably an isolated incident but since I saw that both Chrome and Firefox end their multipart/form-data requests with a CRLF, I figured I would open this PR.

Regarding the tests, I'm not sure why they're failing. I tried running them on felixge/node-form-data's master branch and get the same failure. Maybe it's not me?

alexindigo pushed a commit to alexindigo/form-data that referenced this pull request Jun 13, 2015
alexindigo added a commit that referenced this pull request Jul 22, 2015
@alexindigo
Copy link
Copy Markdown
Member

Fixed in #123.

@alexindigo alexindigo closed this Jul 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants