Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Comments

Fix for allowing POST request with formdata-node using response.body stream as body#1719

Open
4miners wants to merge 4 commits intonode-fetch:mainfrom
4miners:main
Open

Fix for allowing POST request with formdata-node using response.body stream as body#1719
4miners wants to merge 4 commits intonode-fetch:mainfrom
4miners:main

Conversation

@4miners
Copy link

Purpose

It should be possible to useresponse.body of onefetch request as the source body for the secondfetch request, usingformdata-node. This allows downloading file from one remote server and uploading it, as it's downloaded, to another remote server (on-the-fly, without writing to disc). This was not possible due to aCannot perform Construct on a detached ArrayBuffer error.

Changes

  • Copy the buffer when settingpreviousChunk instead of passing it by reference.
  • EnhanceTestServer instance to allow new test cases.
  • Addedshould allow POST request with formdata-node using response.body stream as body test case.

Additional information


  • I added test(s)

jsmonkey and fedyk reacted with thumbs up emoji
Copy link

@jsmonkeyjsmonkey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Looks good!

4miners reacted with thumbs up emoji
@lorenzopolidori
Copy link

@4miners What is the timeline for this PR to be merged and this fix being released?

@4miners
Copy link
Author

@lorenzopolidori Sorry, it's hard to tell because I'm only a contributor, not a repository maintainer.

@Maxou44
Copy link

Can someone merge this fix ?

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

1 more reviewer

@jsmonkeyjsmonkeyjsmonkey approved these changes

Reviewers whose approvals may not affect merge requirements

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Sending response.body using formdata-node fails due to Buffer reference

4 participants

@4miners@lorenzopolidori@Maxou44@jsmonkey

[8]ページ先頭

©2009-2026 Movatter.jp