question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Header is send with illegal utf-8 characters

See original GitHub issue

Using http-server on a system with a German local produces headers with illegal utf-8 characters that are not accepted by some clients:

844424930447543-225-Fri Aug 28 2015 15:15:33 GMT+0200 (Mitteleurop�ische Sommerzeit)

The character is actually an ä.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
rowi1decommented, Sep 27, 2016

Can we make Headers.Builder addLenient public please? There may be some backends that support this, even if it’s not RFC-Conform I have to communicate with these legacy services.

0reactions
thornjadcommented, Dec 18, 2019

No problem! Yeah I’m trying to clean up all these old issues. I’m going to close for now, anyone who sees this again with an up-to-date http-server, please re-open right away!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to pass a header with UTF-8 characters? - Stack Overflow
I'm trying to make a GET request in Postman where one of my header parameters has an UTF-8 encoded character like so:
Read more >
UTF8 characters in HTTP headers - Google Groups
Hi,. Currently, if we get any utf8 (non-ascii but valid utf8) character in http header values, during the header parsing they ...
Read more >
Setting the HTTP charset parameter - W3C
Hints on sending out character encoding information using the HTTP charset parameter. ... header('Content-type: text/html; charset=utf-8');.
Read more >
Illegal Byte Code Character in Header Name | Imperva
An HTTP header name contains characters banned by HTTP standard. These are usually non-printable ASCII characters or other special characters (e.g. '<', '>', ......
Read more >
Accept-Charset - HTTP - MDN Web Docs
UTF-8 is well-supported and the overwhelmingly preferred choice for character encoding. To guarantee better privacy through less configuration- ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found