Commit 31a76374 by Anders Borum

case-insensitive check for WWW-Authenticate header

Fixes issue #3338
parent 2dfd5eae
...@@ -255,7 +255,7 @@ static int on_header_ready(http_subtransport *t) ...@@ -255,7 +255,7 @@ static int on_header_ready(http_subtransport *t)
GITERR_CHECK_ALLOC(t->content_type); 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)); char *dup = git__strdup(git_buf_cstr(value));
GITERR_CHECK_ALLOC(dup); GITERR_CHECK_ALLOC(dup);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment