Skip to content

fix(proxy): ignore incoming accept-encoding header#914

Merged
pi0 merged 1 commit into
v1from
fix/proxy-encoding
Nov 14, 2024
Merged

fix(proxy): ignore incoming accept-encoding header#914
pi0 merged 1 commit into
v1from
fix/proxy-encoding

Conversation

@pi0

@pi0 pi0 commented Nov 14, 2024

Copy link
Copy Markdown
Member

Ref: nitrojs/nitro#2880

Runtime's fetch client, might not support the encodings that the browser client supports.

The relevant issue was because Undici (Node.js) fetch does not support zstd but in general, it is an unsafe thing to pass through.

For performance, users can explicitly enable a supported accept-encoding to the server or we might later identify what runtime supports and set that instead (instead of the proxy incoming request)

@pi0 pi0 self-assigned this Nov 14, 2024
@pi0
pi0 merged commit 3dd17c2 into v1 Nov 14, 2024
@pi0
pi0 deleted the fix/proxy-encoding branch November 14, 2024 13:25
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.

1 participant