aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_static_handler.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-01-10 06:09:20 +0000
committerIgor Sysoev <igor@sysoev.ru>2003-01-10 06:09:20 +0000
commitb2620634c5c395f227a98837f46e1eaf6b86963c (patch)
treed9333eef73b09e7351cdc8705df984786a5544b3 /src/http/modules/ngx_http_static_handler.c
parent4e9393a0548d783cd6f50d1fcd003c85a24b2b16 (diff)
downloadnginx-b2620634c5c395f227a98837f46e1eaf6b86963c.tar.gz
nginx-b2620634c5c395f227a98837f46e1eaf6b86963c.zip
nginx-0.0.1-2003-01-10-09:09:20 import
Diffstat (limited to 'src/http/modules/ngx_http_static_handler.c')
-rw-r--r--src/http/modules/ngx_http_static_handler.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/http/modules/ngx_http_static_handler.c b/src/http/modules/ngx_http_static_handler.c
index fa6207309..c55f36ac5 100644
--- a/src/http/modules/ngx_http_static_handler.c
+++ b/src/http/modules/ngx_http_static_handler.c
@@ -107,17 +107,17 @@ int ngx_http_static_handler(ngx_http_request_t *r)
/* STUB */
if (r->exten.len) {
- if (strcasecmp(r->exten.data, "html") == 0) {
+ if (ngx_strcasecmp(r->exten.data, "html") == 0) {
r->headers_out.content_type->value.len = 25;
r->headers_out.content_type->value.data =
"text/html; charset=koi8-r";
- } else if (strcasecmp(r->exten.data, "gif") == 0) {
+ } else if (ngx_strcasecmp(r->exten.data, "gif") == 0) {
r->headers_out.content_type->value.len = 9;
r->headers_out.content_type->value.data = "image/gif";
- } else if (strcasecmp(r->exten.data, "jpg") == 0) {
+ } else if (ngx_strcasecmp(r->exten.data, "jpg") == 0) {
r->headers_out.content_type->value.len = 10;
r->headers_out.content_type->value.data = "image/jpeg";
- } else if (strcasecmp(r->exten.data, "pdf") == 0) {
+ } else if (ngx_strcasecmp(r->exten.data, "pdf") == 0) {
r->headers_out.content_type->value.len = 15;
r->headers_out.content_type->value.data = "application/pdf";
}