Unverified Commit 1e987525 by Edward Thomson Committed by GitHub

Merge pull request #5624 from csware/http-upgrade-header

Don't fail if a HTTP server announces he supports a protocol upgrade
parents f29e6dde 2dea3eb4
...@@ -1120,11 +1120,6 @@ GIT_INLINE(int) client_read_and_parse(git_http_client *client) ...@@ -1120,11 +1120,6 @@ GIT_INLINE(int) client_read_and_parse(git_http_client *client)
return -1; return -1;
} }
if (parser->upgrade) {
git_error_set(GIT_ERROR_HTTP, "server requested upgrade");
return -1;
}
if (ctx->parse_status == PARSE_STATUS_ERROR) { if (ctx->parse_status == PARSE_STATUS_ERROR) {
client->connected = 0; client->connected = 0;
return ctx->error ? ctx->error : -1; return ctx->error ? ctx->error : -1;
......
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