Mercurial > hg > nginx
view docs/xsls/module.xsls @ 4148:18f1cb12c6d7
Fix for "return 202" not discarding body.
Big POST (not fully preread) to a
location / {
return 202;
}
resulted in incorrect behaviour due to "return" code path not calling
ngx_http_discard_request_body(). The same applies to all "return" used
with 2xx/3xx codes except 201 and 204, and to all "return ... text" uses.
Fix is to add ngx_http_discard_request_body() call to ngx_http_send_response()
function where it looks appropriate. Discard body call from emtpy gif module
removed as it's now redundant.
Reported by Pyry Hakulinen, see
http://mailman.nginx.org/pipermail/nginx/2011-August/028503.html
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Tue, 27 Sep 2011 11:13:00 +0000 |
parents | 5e2103cffd80 |
children |
line wrap: on
line source
X:stylesheet { X:output method="html" indent="no" encoding="utf-8"; X:strip-space elements = "*"; <!-- -- a current directory of a XSLT script is where the script is stored, -- but not where XSLT processor has been started to run the script --> X:param XML = "'../xml'"; X:var ID = "/module/@id"; X:include href = "directive.xslt"; X:include href = "content.xslt"; X:template = "/module" { <html><head> <title> !{@name} </title> </head> <body> <center><h3> !{@name} </h3></center> !!; </body> </html> } }