Commit a8058ffda7cd92bb8eeb61e8cb5d0e6ca0075ebc

Edward Thomson 2015-07-29T16:35:08

Merge pull request #3339 from palmin/palmin-issue-3338 case-insensitive check for WWW-Authenticate header

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/transports/http.c b/src/transports/http.c
index 1ed292b..e3d90de 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);