Skip to content

fix(response): copy headers when init is a foreign Response - #382

Merged
yusukebe merged 1 commit into
mainfrom
fix/response-copy-headers-foreign-response
Jul 26, 2026
Merged

fix(response): copy headers when init is a foreign Response#382
yusukebe merged 1 commit into
mainfrom
fix/response-copy-headers-foreign-response

Conversation

@yusukebe

Copy link
Copy Markdown
Member

I realized that the problem with rebuilding Response with a foreign Response as one returned from fetch will throw a TypeError: immutable, is on the @hono/node-server side. The problem is pointed out honojs/hono#5137 (comment)

This PR fixes it.

@yusukebe

Copy link
Copy Markdown
Member Author

Hi @usualoma

Can you review this?

@usualoma

Copy link
Copy Markdown
Member

@yusukebe
I see, I understand! Thanks for the follow. LGTM!

@yusukebe

Copy link
Copy Markdown
Member Author

@usualoma Thanks!

@yusukebe
yusukebe merged commit caf48ba into main Jul 26, 2026
5 checks passed
@yusukebe
yusukebe deleted the fix/response-copy-headers-foreign-response branch July 26, 2026 04:59
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