We MUST unfold outgoing HTTP headers in any case, "message/http" is for
inner content.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@
1777672 13f79535-47bb-0310-9956-
ffa450edef68
struct check_header_ctx {
request_rec *r;
- unsigned int strict:1,
- unfold:1;
+ int strict;
};
/* check a single header, to be used with apr_table_do() */
name, pos);
return 0;
}
- if (!ctx->unfold) {
- end += 3;
- }
- else if (!dst) {
+ if (!dst) {
*val = dst = apr_palloc(ctx->r->pool, strlen(*val) + 1);
}
}
ctx.r = r;
ctx.strict = (conf->http_conformance != AP_HTTP_CONFORMANCE_UNSAFE);
- ctx.unfold = (!r->content_type || strncmp(r->content_type,
- "message/http", 12));
return check_headers_table(r->headers_out, &ctx) &&
check_headers_table(r->err_headers_out, &ctx);
}