Mercurial > hg > nginx
comparison src/http/modules/ngx_http_image_filter_module.c @ 3516:dd1570b6f237
ngx_str_set() and ngx_str_null()
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 14 May 2010 09:56:37 +0000 |
parents | 11965c62b92c |
children | 1a728cc43bb1 |
comparison
equal
deleted
inserted
replaced
3515:76d252724db5 | 3516:dd1570b6f237 |
---|---|
527 b->last_buf = 1; | 527 b->last_buf = 1; |
528 | 528 |
529 ngx_http_clean_header(r); | 529 ngx_http_clean_header(r); |
530 | 530 |
531 r->headers_out.status = NGX_HTTP_OK; | 531 r->headers_out.status = NGX_HTTP_OK; |
532 r->headers_out.content_type.len = sizeof("text/plain") - 1; | 532 ngx_str_set(&r->headers_out.content_type, "text/plain"); |
533 r->headers_out.content_type.data = (u_char *) "text/plain"; | |
534 r->headers_out.content_type_lowcase = NULL; | 533 r->headers_out.content_type_lowcase = NULL; |
535 | 534 |
536 if (ctx == NULL) { | 535 if (ctx == NULL) { |
537 b->pos = (u_char *) "{}" CRLF; | 536 b->pos = (u_char *) "{}" CRLF; |
538 b->last = b->pos + sizeof("{}" CRLF) - 1; | 537 b->last = b->pos + sizeof("{}" CRLF) - 1; |