Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to remove default charset from "content-type" response header #539

Open
ssafayet opened this issue Apr 24, 2024 · 0 comments
Open

Comments

@ssafayet
Copy link

ssafayet commented Apr 24, 2024

I am using express-http-proxy to proxy requests to a Next application. The issue is, that express-http-proxy is modifying response header "content-type" that is being set by the Next server and adding a "charset=utf-8" by default. Is there any way to prevent this behavior and pass specific response headers as it is to the client without modifications? It is breaking Next's SPA behavior.

I think This file is causing behavior particularly this line:

res.set(item, rsp.headers[item]);

Express is setting the charset by default as it seems.

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

No branches or pull requests

1 participant