utils: do not emit eof chunk for 204/304 responses
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 27 Oct 2014 10:18:10 +0000 (11:18 +0100)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 27 Oct 2014 10:18:10 +0000 (11:18 +0100)
commitd09bf11d572207b79286cdb5e6253278ebec147c
tree70509ca0fd974554461bb8fd4c2532a0ca01d5e2
parent248d682e3b3887a535d4ba81fab65f3463373ac8
utils: do not emit eof chunk for 204/304 responses

According to RFC2616 10.2.5 and 10.3.5, 204 and 304 responses MUST NOT contain any
message body, therfore do not emit an EOF chunk for such responses.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
utils.c