comparison src/http/ngx_http_special_response.c @ 290:87e73f067470

nginx-0.0.2-2004-03-16-10:10:12 import
author Igor Sysoev <igor@sysoev.ru>
date Tue, 16 Mar 2004 07:10:12 +0000
parents 4eaafcd57be7
children a472bfb778b3
comparison
equal deleted inserted replaced
289:0750faf8d7e3 290:87e73f067470
3 #include <ngx_core.h> 3 #include <ngx_core.h>
4 #include <ngx_http.h> 4 #include <ngx_http.h>
5 #include <nginx.h> 5 #include <nginx.h>
6 6
7 7
8 static char error_tail[] = 8 static u_char error_tail[] =
9 "<hr><center>" NGINX_VER "</center>" CRLF 9 "<hr><center>" NGINX_VER "</center>" CRLF
10 "</body>" CRLF 10 "</body>" CRLF
11 "</html>" CRLF 11 "</html>" CRLF
12 ; 12 ;
13 13
14 14
15 static char msie_stub[] = 15 static u_char msie_stub[] =
16 "<!-- The padding to disable MSIE's friendly error page -->" CRLF 16 "<!-- The padding to disable MSIE's friendly error page -->" CRLF
17 "<!-- The padding to disable MSIE's friendly error page -->" CRLF 17 "<!-- The padding to disable MSIE's friendly error page -->" CRLF
18 "<!-- The padding to disable MSIE's friendly error page -->" CRLF 18 "<!-- The padding to disable MSIE's friendly error page -->" CRLF
19 "<!-- The padding to disable MSIE's friendly error page -->" CRLF 19 "<!-- The padding to disable MSIE's friendly error page -->" CRLF
20 "<!-- The padding to disable MSIE's friendly error page -->" CRLF 20 "<!-- The padding to disable MSIE's friendly error page -->" CRLF
174 }; 174 };
175 175
176 176
177 int ngx_http_special_response_handler(ngx_http_request_t *r, int error) 177 int ngx_http_special_response_handler(ngx_http_request_t *r, int error)
178 { 178 {
179 int err, rc, i; 179 ngx_int_t rc;
180 ngx_uint_t err, i;
180 ngx_hunk_t *h; 181 ngx_hunk_t *h;
181 ngx_chain_t *out, **ll, *cl; 182 ngx_chain_t *out, **ll, *cl;
182 ngx_http_err_page_t *err_page; 183 ngx_http_err_page_t *err_page;
183 ngx_http_core_loc_conf_t *clcf; 184 ngx_http_core_loc_conf_t *clcf;
184 185