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

Cannot change "Content-Type:" header #200

Open
Sterpa opened this issue Sep 29, 2017 · 1 comment
Open

Cannot change "Content-Type:" header #200

Sterpa opened this issue Sep 29, 2017 · 1 comment

Comments

@Sterpa
Copy link

Sterpa commented Sep 29, 2017

Hi,
i cannot change "Content-Type:" header with command
$ static -H '{"Content-Type": "text/html;charset=UTF-8"}'
to switch-on UTF-8

node-static do not remember new Content-Type value, it use only "text/html"

What's wrong? It's a bug?

@brettz9
Copy link
Collaborator

brettz9 commented Oct 20, 2018

Independent of this apparent issue, on a related matter, it would be nice to have an option to set a charset on any content-type header so that other files like JavaScript could have a default of UTF-8 set by command line as well. Besides the need for those who use non-ASCII characters, viewing these files without such information can give annoying warnings in console.

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

2 participants