diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2003-10-24 06:53:41 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2003-10-24 06:53:41 +0000 |
| commit | 12b4b00784bbc3cd934e2f2bbee79679684629e3 (patch) | |
| tree | 602dfdcdc4fe5b21c17366eacfae63efcb03770e /src/http/ngx_http_special_response.c | |
| parent | 8556e6da41e80772cb9710e4309d9ad44a7b360e (diff) | |
| download | nginx-12b4b00784bbc3cd934e2f2bbee79679684629e3.tar.gz nginx-12b4b00784bbc3cd934e2f2bbee79679684629e3.tar.bz2 | |
nginx-0.0.1-2003-10-24-10:53:41 import
Diffstat (limited to 'src/http/ngx_http_special_response.c')
| -rw-r--r-- | src/http/ngx_http_special_response.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/http/ngx_http_special_response.c b/src/http/ngx_http_special_response.c index 2b274d5a0..ce6183e8b 100644 --- a/src/http/ngx_http_special_response.c +++ b/src/http/ngx_http_special_response.c @@ -152,9 +152,10 @@ static ngx_str_t error_pages[] = { int ngx_http_special_response_handler(ngx_http_request_t *r, int error) { - int err, rc; - ngx_hunk_t *h; - ngx_chain_t *out, **ll, *cl; + int err, rc; + ngx_hunk_t *h; + ngx_chain_t *out, **ll, *cl; + ngx_http_core_loc_conf_t *clcf; r->headers_out.status = error; @@ -238,7 +239,9 @@ int ngx_http_special_response_handler(ngx_http_request_t *r, int error) ngx_alloc_link_and_set_hunk(cl, h, r->pool, NGX_ERROR); ngx_chain_add_link(out, ll, cl); - if (/* STUB: "msie_padding on/off" */ 1 + clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module); + + if (clcf->msie_padding && r->http_version >= NGX_HTTP_VERSION_10 && error >= NGX_HTTP_BAD_REQUEST && error != NGX_HTTP_REQUEST_URI_TOO_LARGE |
