ubuntu-drupal team mailing list archive
-
ubuntu-drupal team
-
Mailing list archive
-
Message #00024
[Bug 497695] Re: 201 created response with content
** Project changed: nginx => ninx
--
201 created response with content
https://bugs.launchpad.net/bugs/497695
You received this bug notification because you are a member of Ubuntu
Drupal Development Suite, which is subscribed to Ninx.
Status in Nginx: New
Bug description:
As far as my understanding of HTTP goes, "201 Created" response can have a body, and should not be assumed empty.
see http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.2.2
chunked-filter assumes that 201 are empty, and is not triggered even if the response actually has a body. If for some reason ("ssi on" is enough) no Content-Length header is available on the response, the response will break end-of-response detection on the browser or the next proxy in the stack.
in 0.7.64, bug is in src/http/modules/ngx_http_chunked_filter_module.c:55. I think NGX_HTTP_CREATED should not bypass the chunk filter, so this status code should be removed from the if condition.