https://bz.apache.org/bugzilla/show_bug.cgi?id=60451

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Mark Thomas <ma...@apache.org> ---
Neither the HTTP/2 spec nor the HPACK spec define the encoding to be used to
convert characters to bytes for header values once you step outside of ASCII so
to some extent this is going to be a lottery.

Tomcat's implementation was meant to use the unicode code point but failed to
take account of the fact the byte is signed in Java. I've fixed this and
improved the error message if you try to send a header containing a character
with a code point above 255. I also added some test cases.

As an aside, your original example should now work.

Fixed in:
- trunk for 9.0.0.M15 onwards
- 8.5.x for 8.5.10 onwards

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to