Skip to content

Commit

Permalink
Sends correct content_type.len on custom redirect
Browse files Browse the repository at this point in the history
Adds missed conten_type.len modification, allows nginx to send a
correct content-type and corrects the « download redirect page problem »
  • Loading branch information
LoadLow committed Oct 16, 2014
1 parent 2400007 commit bc81456
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ngx_http_testcookie_filter_module.c
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,7 @@ ngx_http_send_custom_refresh(ngx_http_request_t *r, ngx_http_testcookie_conf_t
r->err_status = NGX_HTTP_OK;

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";


Expand Down

0 comments on commit bc81456

Please sign in to comment.