xp-framework/xp-framework — pull request #194 by Stormwind (2012-10-19 14:26:18+00:00)
Title: HTTP status 204 and 304 fix

Hi,

at the moment the framework sends content in a HTTP response, even if the status is 204 and 304, which is must not have a content.
This is a fix for this.

This bug causes also a strange behavior in the Apache webserver.
The webserver sends the request headers and keeps somehow the content in a buffer. If this connection also uses Keep-Alive and is used again, the wrong body of this response is sent before the new response. This causes an odd behavior and the browser starts to download the response, instead of processing it.

Bye