https://issues.apache.org/bugzilla/show_bug.cgi?id=56024

            Bug ID: 56024
           Summary: Header case sensitivity in
                    ClientEndpointConfig.Configurator.afterResponse()
           Product: Tomcat 8
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: WebSocket
          Assignee: dev@tomcat.apache.org
          Reporter: simone.bor...@gmail.com

The headers map contained in the HandshakeResponse passed to
ClientEndpointConfig.Configurator.afterResponse() contains the response headers
all in lower-case form.

This makes tests like:

if (response.getHeaders().containsKey(HandshakeResponse.SEC_WEBSOCKET_ACCEPT))

fail because the HandshakeResponse.SEC_WEBSOCKET_ACCEPT constant has the header
name camel-cased.

Expected: the header map contains the header names with the proper case. This
will avoid applications to crack open the map, iterate on it, and call
equalsIgnoreCase().

Thanks !

-- 
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