Commit 28328570 by Tyler Ang-Wanek Committed by Edward Thomson

httpclient: git_http_client_skip_body should drain socket of body

parent 97309423
......@@ -1476,7 +1476,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