# HG changeset patch # User Kirill A. Korinskiy # Date 1242494279 -14400 # Node ID 69db0a94c8829d8953c76509a938e5233398ab75 # Parent 1f579406591205ae7b1fca2b41213a0cf554c548 204 No Content and 304 Not Modified must no include a message body, fix it diff -r 1f5794065912 -r 69db0a94c882 src/http.c --- a/src/http.c Fri Apr 24 10:00:48 2009 -0700 +++ b/src/http.c Sat May 16 21:17:59 2009 +0400 @@ -1815,6 +1815,11 @@ print_server_response (resp, " "); } + /* 204 and 304 responses must not include a message body */ + if (statcode == HTTP_STATUS_NO_CONTENT + || statcode == HTTP_STATUS_NOT_MODIFIED) + head_only = 1; + /* Check for keep-alive related responses. */ if (!inhibit_keep_alive && contlen != -1) {