summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2020-09-08 17:25:06 +0100
committerGitHub <noreply@github.com>2020-09-08 17:25:06 +0100
commit1e987525b3bd86fc29e7ff67d973861efd22faf7 (patch)
treed260a86e14dc2879fa91a70b22f75a275e48ff6f
parentf29e6ddec179726d0879c9b4a86a87f897766833 (diff)
parent2dea3eb41a8e75eea464b3d1bcdffcf0530f4cbc (diff)
downloadlibgit2-1e987525b3bd86fc29e7ff67d973861efd22faf7.tar.gz
Merge pull request #5624 from csware/http-upgrade-header
Don't fail if a HTTP server announces he supports a protocol upgrade
-rw-r--r--src/transports/httpclient.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/transports/httpclient.c b/src/transports/httpclient.c
index dda267833..3c940c930 100644
--- a/src/transports/httpclient.c
+++ b/src/transports/httpclient.c
@@ -1120,11 +1120,6 @@ GIT_INLINE(int) client_read_and_parse(git_http_client *client)
return -1;
}
- if (parser->upgrade) {
- git_error_set(GIT_ERROR_HTTP, "server requested upgrade");
- return -1;
- }
-
if (ctx->parse_status == PARSE_STATUS_ERROR) {
client->connected = 0;
return ctx->error ? ctx->error : -1;