From 31a76374a9bea7d61fec3741d46f09872a8bbb2a Mon Sep 17 00:00:00 2001 From: Anders Borum Date: Wed, 29 Jul 2015 22:23:00 +0200 Subject: case-insensitive check for WWW-Authenticate header Fixes issue #3338 --- src/transports/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transports/http.c b/src/transports/http.c index 1ed292be5..e3d90de11 100644 --- a/src/transports/http.c +++ b/src/transports/http.c @@ -255,7 +255,7 @@ static int on_header_ready(http_subtransport *t) GITERR_CHECK_ALLOC(t->content_type); } } - else if (!strcmp("WWW-Authenticate", git_buf_cstr(name))) { + else if (!strcasecmp("WWW-Authenticate", git_buf_cstr(name))) { char *dup = git__strdup(git_buf_cstr(value)); GITERR_CHECK_ALLOC(dup); -- cgit v1.2.3