netty5/codec-http/src
Stephane Landelle 940f15f0d2 Use predefined HttpResponseStatus constant instead of hardcoded 101 code
Motivation:

#7269 removed an unnecessary instanciation for verifying WebSocket
handshake status code.
But it uses a hardcoded status code value for 101 instead of using the
intended `HttpResponseStatus#SWITCHING_PROTOCOLS` constant.

Modidication:

Compare actual `HttpResponseStatus` against predefined constant. Note
that `HttpResponseStatus#equals` is implemented in respect with the RFC
(only honor code, not text) so it’s intended to be used this way.

Result:

Cleaner code, use intended constant instead of hard coded value.
2017-10-02 18:58:12 +02:00
..
main/java/io/netty/handler/codec Use predefined HttpResponseStatus constant instead of hardcoded 101 code 2017-10-02 18:58:12 +02:00
test Fixing CorsHandler response Content-Length 2017-10-02 08:20:15 +02:00