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

Encoding in header for Content-Type question? #2

Open
harrypower opened this issue Jan 24, 2013 · 2 comments
Open

Encoding in header for Content-Type question? #2

harrypower opened this issue Jan 24, 2013 · 2 comments
Assignees

Comments

@harrypower
Copy link
Owner

I need to find out if i nee to put the encoding for all types of mime files or just some. Currently the header element called Content-Type: will have this added to all mime file output : ; charset=UTF-8
Example would be as follows:
Content-Type: text/html; charset=UTF-8
I suspect that only the text/html mime types would need this!

@ghost ghost assigned harrypower Jan 24, 2013
@harrypower
Copy link
Owner Author

Looks like i should only put this ; charset=UTF-8 for the content-type text/html only. Need to make change to code for this now!

@harrypower
Copy link
Owner Author

I have now changed code to only put the ; charset=UTF-8 encoding message in header for text/html. This will also happen on the .shtml files as they report the header as text/html also. If the file type is htm i am unsure what will happen but i think it will not put this encoding message. I may want to come up with a more flexible method to attach encoding messages with mime types but not a big deal as i would be the only one using this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant