Commit 46c0c379 authored by Martin Blix Grydeland's avatar Martin Blix Grydeland

Fix wrong argument order when picking the Host header.

Fix wrong argument order for isprefix() when picking the Host
header. This caused the header to never be matched.

Fixes: #1383
parent af79dc85
......@@ -776,7 +776,7 @@ dispatch_f(struct VSL_data *vsl, struct VSL_transaction * const pt[],
0, NULL);
break;
case SLT_ReqHeader:
if (isprefix(b, e, "Host:", &p))
if (isprefix(b, "Host:", e, &p))
frag_line(p, e, &CTX.frag[F_host]);
else if (isprefix(b, "Authorization:", e, &p) &&
isprefix(p, "basic", e, &p))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment