Issue #1156 invalid

"\n" newline in GET request body causes 2 http responses

Anonymous created an issue

Version: python2-cherrypy 3.2.2-1

expected result would be only the second HTTP response of the following example or that the response mention content body is not allowed for a GET request...

what i actually get: $ echo -en 'GET http://localhost/ HTTP/1.9-2\r\nHost: localhost\r\n\r\n\n' | nc localhost 8080 HTTP/1.1 200 OK Date: Fri, 27 Jul 2012 19:39:28 GMT Content-Length: 1187 Content-Type: text/html;charset=utf-8 Server: CherryPy/3.2.2

foobar Content of response here… ### HTTP/1.1 400 Bad Request Content-Length: 30 Content-Type: text/plain

HTTP requires CRLF terminators $

Comments (4)

  1. Log in to comment