awslabs / multi-model-server

Multi Model Server is a tool for serving neural net models for inference
Apache License 2.0
998 stars 230 forks source link

Netty does not allow \r \n in the reasonPhrase and MMS fails to handle responses which have \r and \n in the reasonPhrase #933

Open ashishgupta023 opened 4 years ago

ashishgupta023 commented 4 years ago

Netty does not allow \r \n in the reasonPhrase and MMS fails to handle responses which have \r and \n and responds with java.lang.IllegalArgumentException: reasonPhrase contains one of the following prohibited characters: \r\n:

https://github.com/netty/netty/blob/0cde4d9cb4d19ddc0ecafc5be7c5f7c781a1f6e9/codec-http/src/main/java/io/netty/handler/codec/http/HttpResponseStatus.java#L552