GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — append crlf to formdata body by KhafraDev · Pull Request #3625 · nodejs/undici

Conversation

@KhafraDev

@KhafraDev KhafraDev commented Sep 19, 2024

Copy link
Copy Markdown
Member

fixes #3624

this change is harmless. Servers that don't care should ignore it.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
KhafraDev added 2 commits September 19, 2024 19:17
@KhafraDev
append crlf to formdata body
c56460a
@KhafraDev
fixup! v18
d48754e
tsctx
tsctx approved these changes Sep 20, 2024
View reviewed changes
@KhafraDev
KhafraDev merged commit fdeccc2 into nodejs:main Sep 20, 2024
@KhafraDev
KhafraDev deleted the append-crlf-fd-body branch September 20, 2024 01:27
@github-actions github-actions Bot mentioned this pull request Dec 3, 2024
[Release] v7.1.0 #3922
Merged
This was referenced Dec 16, 2024
[Release] v7.1.1 #3952
Closed
[Release] v7.2.0 #3962
Merged
@philnash philnash mentioned this pull request Jan 14, 2025
fix: allow multipart/form-data boundary to end with a newline langflow-ai/langflow#5660
Merged
github-merge-queue Bot pushed a commit to langflow-ai/langflow that referenced this pull request Jan 21, 2025
@philnash
fix: allow multipart/form-data boundary to end with a newline (#5660)
c7f6554
The RFC 7578 spec for multipart/form-data requests does not require the
body of a request to end with a CRLF, only that each section begins with
a CRLF. While many clients implement multipart requests with the
trailing CRLF, the implementation for fetch in Node.js version 22 and
below does not.

This caused my a good number of hours debugging!

It does turn out that in September 2024 the Node.js fetch implementation
added the CRLF (nodejs/undici#3625), though this
hasn't made it to a Node.js release yet.

This change allows the boundary to end with a newline or
not, as long as the boundary is followed by the end of the request body.
@github-actions github-actions Bot mentioned this pull request Mar 12, 2025
[Release] v6.21.2 #4092
Closed
@KhafraDev KhafraDev added the backport v6.x label May 12, 2025
github-actions Bot pushed a commit that referenced this pull request May 12, 2025
@KhafraDev @github-actions
append crlf to formdata body (#3625)
4f0d4ca
* append crlf to formdata body

* fixup! v18

(cherry picked from commit fdeccc2)
@github-actions github-actions Bot mentioned this pull request May 12, 2025
[Backport v6.x] append crlf to formdata body #4210
Merged
mcollina pushed a commit that referenced this pull request May 12, 2025
@github-actions @KhafraDev
append crlf to formdata body (#3625) (#4210)
dbbe0a2
* append crlf to formdata body

* fixup! v18

(cherry picked from commit fdeccc2)

Co-authored-by: Khafra <[email protected]>
@github-actions github-actions Bot mentioned this pull request May 12, 2025
[Release] v6.21.3 #4211
Closed
@petebacondarwin petebacondarwin mentioned this pull request Jan 12, 2026
Update Node.js version in GitHub Actions workflow to match workers-sdk cloudflare/workerd#5867
Merged
hanzo-dev pushed a commit to hanzoai/flow that referenced this pull request Jul 26, 2026
@philnash
fix: allow multipart/form-data boundary to end with a newline (#5660)
23b30d8
The RFC 7578 spec for multipart/form-data requests does not require the
body of a request to end with a CRLF, only that each section begins with
a CRLF. While many clients implement multipart requests with the
trailing CRLF, the implementation for fetch in Node.js version 22 and
below does not.

This caused my a good number of hours debugging!

It does turn out that in September 2024 the Node.js fetch implementation
added the CRLF (nodejs/undici#3625), though this
hasn't made it to a Node.js release yet.

This change allows the boundary to end with a newline or
not, as long as the boundary is followed by the end of the request body.
zeekay pushed a commit to hanzoai/flow that referenced this pull request Jul 26, 2026
@philnash
fix: allow multipart/form-data boundary to end with a newline (#5660)
d7acefc
The RFC 7578 spec for multipart/form-data requests does not require the
body of a request to end with a CRLF, only that each section begins with
a CRLF. While many clients implement multipart requests with the
trailing CRLF, the implementation for fetch in Node.js version 22 and
below does not.

This caused my a good number of hours debugging!

It does turn out that in September 2024 the Node.js fetch implementation
added the CRLF (nodejs/undici#3625), though this
hasn't made it to a Node.js release yet.

This change allows the boundary to end with a newline or
not, as long as the boundary is followed by the end of the request body.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@tsctx tsctx tsctx approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

backport v6.x

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

When using fetch for FormData upload files, lack of"\r\n"

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@KhafraDev @tsctx
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.