ct = &ngx_http_image_types[ctx->type - 1];
r->headers_out.content_type_len = ct->len;
r->headers_out.content_type = *ct;
+ r->headers_out.content_type_lowcase = NULL;
if (conf->filter == NGX_HTTP_IMAGE_TEST) {
ctx->phase = NGX_HTTP_IMAGE_PASS;
r->headers_out.status = NGX_HTTP_OK;
r->headers_out.content_type.len = sizeof("text/plain") - 1;
r->headers_out.content_type.data = (u_char *) "text/plain";
+ r->headers_out.content_type_lowcase = NULL;
if (ctx == NULL) {
b->pos = (u_char *) "{}" CRLF;
return NGX_ERROR;
}
+ r->headers_out.content_type_lowcase = NULL;
+
/* "Content-Type: multipart/byteranges; boundary=0123456789" */
r->headers_out.content_type.len =
boundary)
- r->headers_out.content_type.data;
+ r->headers_out.content_type_len = r->headers_out.content_type.len;
/* the size of the last boundary CRLF "--0123456789--" CRLF */
r->headers_out.content_type.data = (u_char *) "text/html";
}
+ r->headers_out.content_type_lowcase = NULL;
+
return b;
}
r->headers_out.content_type_len = sizeof("text/html") - 1;
r->headers_out.content_type.len = sizeof("text/html") - 1;
r->headers_out.content_type.data = (u_char *) "text/html";
+ r->headers_out.content_type_lowcase = NULL;
} else {
r->headers_out.content_length_n = -1;
r->headers_out.content_type_len = sizeof("text/html") - 1;
r->headers_out.content_type.len = sizeof("text/html") - 1;
r->headers_out.content_type.data = (u_char *) "text/html";
+ r->headers_out.content_type_lowcase = NULL;
r->headers_out.location->hash = 0;
r->headers_out.location = NULL;
r->headers_out.content_type_len = h->value.len;
r->headers_out.content_type = h->value;
+ r->headers_out.content_type_lowcase = NULL;
for (p = h->value.data; *p; p++) {