aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_empty_gif_module.c
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2011-09-27 11:09:55 +0000
committerMaxim Dounin <mdounin@mdounin.ru>2011-09-27 11:09:55 +0000
commitbfb42ad97c2ef1b04933b521f20540e7391e495e (patch)
tree09706b11618bf0b64347a5799d59944eb01de043 /src/http/modules/ngx_http_empty_gif_module.c
parent5c56f20ae7266f7c749e04a84207cf860d3899a8 (diff)
downloadnginx-bfb42ad97c2ef1b04933b521f20540e7391e495e.tar.gz
nginx-bfb42ad97c2ef1b04933b521f20540e7391e495e.zip
Fix for incorrect 201 replies from dav module.
Replies with 201 code contain body, and we should clearly indicate it's empty if it's empty. Before 0.8.32 chunked was explicitly disabled for 201 replies and as a result empty body was indicated by connection close (not perfect, but worked). Since 0.8.32 chunked is enabled, and this causes incorrect responses from dav module when HTTP/1.1 is used: with "Transfer-Encoding: chunked" but no chunks at all. Fix is to actually return empty body in special response handler instead of abusing r->header_only flag. See here for initial report: http://mailman.nginx.org/pipermail/nginx-ru/2010-October/037535.html
Diffstat (limited to 'src/http/modules/ngx_http_empty_gif_module.c')
0 files changed, 0 insertions, 0 deletions