← Back to team overview

ubuntu-drupal team mailing list archive

[Bug 497695] Re: 201 created response with content

 

** Changed in: nginx
       Status: New => Triaged

** Changed in: nginx
   Importance: Undecided => Wishlist

** Changed in: nginx
     Assignee: (unassigned) => Michael Lustfield (mtecknology)

-- 
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 Nginx.

Status in Nginx: Triaged

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.