diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2015-07-29 16:35:08 -0500 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2015-07-29 16:35:08 -0500 |
commit | a8058ffda7cd92bb8eeb61e8cb5d0e6ca0075ebc (patch) | |
tree | 37aa24cb5bce636efc41ac70cfb32d4c9232b8c0 | |
parent | 2dfd5eae33e079bc92a15ccfd561901ea7b69e45 (diff) | |
parent | 31a76374a9bea7d61fec3741d46f09872a8bbb2a (diff) | |
download | libgit2-a8058ffda7cd92bb8eeb61e8cb5d0e6ca0075ebc.tar.gz |
Merge pull request #3339 from palmin/palmin-issue-3338
case-insensitive check for WWW-Authenticate header
-rw-r--r-- | src/transports/http.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |