mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-07 14:01:54 +00:00
BUG/MINOR: compression: Content-Type is case insensitive
The Content-Type parameter must be case insensitive.
This commit is contained in:
parent
f003d375ec
commit
859550e068
@ -2078,7 +2078,7 @@ int select_compression_response_header(struct session *s, struct buffer *res)
|
||||
if ((s->be->comp && (comp_type = s->be->comp->types)) || (s->fe->comp && (comp_type = s->fe->comp->types))) {
|
||||
if (http_find_header2("Content-Type", 12, res->p, &txn->hdr_idx, &ctx)) {
|
||||
for (; comp_type; comp_type = comp_type->next) {
|
||||
if (strncmp(ctx.line+ctx.val, comp_type->name, comp_type->name_len) == 0)
|
||||
if (strncasecmp(ctx.line+ctx.val, comp_type->name, comp_type->name_len) == 0)
|
||||
/* this Content-Type should be compressed */
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user