case-insensitive check for WWW-Authenticate header

Fixes issue #3338
This commit is contained in:
Anders Borum 2015-07-29 22:23:00 +02:00 committed by Carlos Martín Nieto
parent c5d4317887
commit a91dff8931

View File

@ -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);