comparison src/http/modules/ngx_http_stub_status_module.c @ 665:0b460e61bdcd default tip

Merge with nginx 1.0.0.
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 25 Apr 2011 04:22:17 +0400
parents 8246d8a2c2be
children
comparison
equal deleted inserted replaced
572:06419a2298a9 665:0b460e61bdcd
73 73
74 if (rc != NGX_OK) { 74 if (rc != NGX_OK) {
75 return rc; 75 return rc;
76 } 76 }
77 77
78 r->headers_out.content_type.len = sizeof("text/plain") - 1; 78 ngx_str_set(&r->headers_out.content_type, "text/plain");
79 r->headers_out.content_type.data = (u_char *) "text/plain";
80 79
81 if (r->method == NGX_HTTP_HEAD) { 80 if (r->method == NGX_HTTP_HEAD) {
82 r->headers_out.status = NGX_HTTP_OK; 81 r->headers_out.status = NGX_HTTP_OK;
83 82
84 rc = ngx_http_send_header(r); 83 rc = ngx_http_send_header(r);