Mercurial > hg > nginx-quic
comparison src/http/modules/ngx_http_static_handler.c @ 190:02a715e85df1
nginx-0.0.1-2003-11-19-00:34:08 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 18 Nov 2003 21:34:08 +0000 |
parents | c1f3a3c7c5db |
children | 8dee38ea9117 |
comparison
equal
deleted
inserted
replaced
189:c966c09be66b | 190:02a715e85df1 |
---|---|
198 return NGX_HTTP_INTERNAL_SERVER_ERROR; | 198 return NGX_HTTP_INTERNAL_SERVER_ERROR; |
199 } | 199 } |
200 | 200 |
201 *last++ = '/'; | 201 *last++ = '/'; |
202 *last = '\0'; | 202 *last = '\0'; |
203 #if 0 | |
203 r->headers_out.location->key.len = 8; | 204 r->headers_out.location->key.len = 8; |
204 r->headers_out.location->key.data = "Location" ; | 205 r->headers_out.location->key.data = "Location" ; |
206 #endif | |
205 r->headers_out.location->value.len = last - location; | 207 r->headers_out.location->value.len = last - location; |
206 r->headers_out.location->value.data = location; | 208 r->headers_out.location->value.data = location; |
207 | 209 |
208 return NGX_HTTP_MOVED_PERMANENTLY; | 210 return NGX_HTTP_MOVED_PERMANENTLY; |
209 } | 211 } |