Mercurial > hg > nginx-quic
comparison src/http/ngx_http_special_response.c @ 148:5afee0074707
nginx-0.0.1-2003-10-17-00:19:16 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 16 Oct 2003 20:19:16 +0000 |
parents | 58557d0cccd1 |
children | c71aeb75c071 |
comparison
equal
deleted
inserted
replaced
147:be71fca7f9d7 | 148:5afee0074707 |
---|---|
161 /* 3XX */ | 161 /* 3XX */ |
162 err = error - NGX_HTTP_MOVED_PERMANENTLY; | 162 err = error - NGX_HTTP_MOVED_PERMANENTLY; |
163 | 163 |
164 } else if (error < NGX_HTTP_INTERNAL_SERVER_ERROR) { | 164 } else if (error < NGX_HTTP_INTERNAL_SERVER_ERROR) { |
165 /* 4XX */ | 165 /* 4XX */ |
166 err = error - NGX_HTTP_BAD_REQUEST + 4; | 166 err = error - NGX_HTTP_BAD_REQUEST + 3; |
167 | 167 |
168 } else { | 168 } else { |
169 /* 5XX */ | 169 /* 5XX */ |
170 err = error - NGX_HTTP_INTERNAL_SERVER_ERROR + 4 + 17; | 170 err = error - NGX_HTTP_INTERNAL_SERVER_ERROR + 3 + 17; |
171 } | 171 } |
172 | 172 |
173 if (r->keepalive != 0) { | 173 if (r->keepalive != 0) { |
174 switch (error) { | 174 switch (error) { |
175 case NGX_HTTP_BAD_REQUEST: | 175 case NGX_HTTP_BAD_REQUEST: |