summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorflorian <florian@openbsd.org>2019-03-04 08:58:43 +0000
committerflorian <florian@openbsd.org>2019-03-04 08:58:43 +0000
commite86fbd1d81cc5c0aa10da6ad8c74360bddb97576 (patch)
tree8f2b411b1b88491fd3f84e369e0a03b02e7c0b9a
parentAdd padding to struct sadb_x_counter to make it comply with (diff)
downloadwireguard-openbsd-e86fbd1d81cc5c0aa10da6ad8c74360bddb97576.tar.xz
wireguard-openbsd-e86fbd1d81cc5c0aa10da6ad8c74360bddb97576.zip
According to RFC 7230 Section 3.2 header field names are
case-insensitive. Pointed out by "Wolf" ( wolf at wolfsden.cz ) for acme-client, thanks!
-rw-r--r--sbin/unwind/captiveportal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/unwind/captiveportal.c b/sbin/unwind/captiveportal.c
index a38a887f4fa..8ba6f13693c 100644
--- a/sbin/unwind/captiveportal.c
+++ b/sbin/unwind/captiveportal.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: captiveportal.c,v 1.8 2019/03/01 08:02:25 florian Exp $ */
+/* $OpenBSD: captiveportal.c,v 1.9 2019/03/04 08:58:43 florian Exp $ */
/*
* Copyright (c) 2018 Florian Obser <florian@openbsd.org>
@@ -642,7 +642,7 @@ parse_http_header(struct http_ctx *ctx)
/* ignore parse errors from here on out, we got the status */
- p = strstr(ep + 1, "Content-Length:");
+ p = strcasestr(ep + 1, "Content-Length:");
if (p == NULL)
return (0);