Mercurial > hg > nginx-quic
comparison src/http/ngx_http_header_filter_module.c @ 3662:a870639d2970
Fix processing
error_page 502 504 /zero;
location = /zero { return 204; }
The bug has been introduced in r3634.
The fix also allow to use:
error_page 502 504 = /zero;
location = /zero { return 200; }
This case still does not work:
error_page 502 504 /zero;
location = /zero { return 200; }
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 30 Jun 2010 14:39:28 +0000 |
parents | eb5e237bfa58 |
children | 68b28a88749d |
comparison
equal
deleted
inserted
replaced
3661:8649a0c0f09d | 3662:a870639d2970 |
---|---|
168 #if (NGX_HAVE_INET6) | 168 #if (NGX_HAVE_INET6) |
169 struct sockaddr_in6 *sin6; | 169 struct sockaddr_in6 *sin6; |
170 #endif | 170 #endif |
171 u_char addr[NGX_SOCKADDR_STRLEN]; | 171 u_char addr[NGX_SOCKADDR_STRLEN]; |
172 | 172 |
173 if (r->header_sent) { | |
174 return NGX_OK; | |
175 } | |
176 | |
173 r->header_sent = 1; | 177 r->header_sent = 1; |
174 | 178 |
175 if (r != r->main) { | 179 if (r != r->main) { |
176 return NGX_OK; | 180 return NGX_OK; |
177 } | 181 } |