rolkey / indyproject

Automatically exported from code.google.com/p/indyproject
0 stars 0 forks source link

TIdHTTPAppResponse.SendResponse must not write any content in case of 304 response code. #288

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The http protocol specify that a 304 response code MUST NOT contain a 
message-body.

The protocol violation occurs since SendResponse always call WriteContent which 
always generate a message body.

This pose a problem when the http server keep alive is on and Chrome Version 
34.0.1847.131 m.

Original issue reported on code.google.com by jacques....@gmail.com on 2 May 2014 at 10:46

GoogleCodeExporter commented 8 years ago
Implemented in SVN rev 5212.  WriteContent() no longer sends a message body for 
a HEAD request or a 1xx, 204, or 304 response.

Original comment by gambit47 on 24 Nov 2014 at 3:30