diff options
author | Igor Sysoev <igor@sysoev.ru> | 2002-12-02 16:09:40 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2002-12-02 16:09:40 +0000 |
commit | a0bb31f92c86a96b3008f9ee320890ee0d920487 (patch) | |
tree | b4b5208a1b3ff66ec7183cb9b02ceffe59f0a0bd /src/http/modules/ngx_http_static_handler.c | |
parent | 2ba1ee0930adc22206cad54c46fc682485933963 (diff) | |
download | nginx-a0bb31f92c86a96b3008f9ee320890ee0d920487.tar.gz nginx-a0bb31f92c86a96b3008f9ee320890ee0d920487.zip |
nginx-0.0.1-2002-12-02-19:09:40 import; resume after 2 months stall
Diffstat (limited to 'src/http/modules/ngx_http_static_handler.c')
-rw-r--r-- | src/http/modules/ngx_http_static_handler.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/http/modules/ngx_http_static_handler.c b/src/http/modules/ngx_http_static_handler.c index 898e57757..6b2083991 100644 --- a/src/http/modules/ngx_http_static_handler.c +++ b/src/http/modules/ngx_http_static_handler.c @@ -58,25 +58,25 @@ int ngx_http_static_handler(ngx_http_request_t *r) return NGX_HTTP_INTERNAL_SERVER_ERROR; } - r->headers_out->status = NGX_HTTP_OK; - r->headers_out->content_length = ngx_file_size(r->fileinfo); + r->headers_out.status = NGX_HTTP_OK; + r->headers_out.content_length = ngx_file_size(r->fileinfo); /* - r->headers_out->last_modified = ngx_file_mtime(r->fileinfo); + r->headers_out.last_modified = ngx_file_mtime(r->fileinfo); */ /* STUB */ if (r->exten) { if (strcasecmp(r->exten, "html") == 0) - r->headers_out->content_type = "text/html; charset=koi8-r"; + r->headers_out.content_type = "text/html; charset=koi8-r"; else if (strcasecmp(r->exten, "gif") == 0) - r->headers_out->content_type = "image/gif"; + r->headers_out.content_type = "image/gif"; else if (strcasecmp(r->exten, "jpg") == 0) - r->headers_out->content_type = "image/jpeg"; + r->headers_out.content_type = "image/jpeg"; else if (strcasecmp(r->exten, "pdf") == 0) - r->headers_out->content_type = "application/pdf"; + r->headers_out.content_type = "application/pdf"; } else { - r->headers_out->content_type = "text/html; charset=koi8-r"; + r->headers_out.content_type = "text/html; charset=koi8-r"; } /* STUB */ |