httpclient: git_http_client_skip_body should drain socket of body

parent cabfa3b3
......@@ -1503,7 +1503,7 @@ int git_http_client_skip_body(git_http_client *client)
"unexpected data handled in callback");
error = -1;
}
} while (!error);
} while (error >= 0 && client->state != DONE);
if (error < 0)
client->connected = 0;
......
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