summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/acme-client/http.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.sbin/acme-client/http.c b/usr.sbin/acme-client/http.c
index 79330ae2905..22b7a717156 100644
--- a/usr.sbin/acme-client/http.c
+++ b/usr.sbin/acme-client/http.c
@@ -1,4 +1,4 @@
-/* $Id: http.c,v 1.24 2018/11/29 14:25:07 tedu Exp $ */
+/* $Id: http.c,v 1.25 2019/03/04 10:59:04 florian Exp $ */
/*
* Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -442,9 +442,8 @@ http_head_get(const char *v, struct httphead *h, size_t hsz)
size_t i;
for (i = 0; i < hsz; i++) {
- if (strcmp(h[i].key, v))
- continue;
- return &h[i];
+ if (strcasecmp(h[i].key, v) == 0)
+ return &h[i];
}
return NULL;
}