comparison src/http/modules/ngx_http_stub_status_module.c @ 635:e67b227c8dbb default tip

Merge with current.
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 25 Apr 2011 04:07:55 +0400
parents 8246d8a2c2be
children
comparison
equal deleted inserted replaced
578:f3a9e57d2e17 635:e67b227c8dbb
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);