mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-04 11:45:18 +02:00
http: Fix hang on early close.
This commit is contained in:
@@ -371,7 +371,7 @@ int Client::ReadResponseHeaders(net::Buffer *readbuf, std::vector<std::string> &
|
||||
|
||||
while (true) {
|
||||
int sz = readbuf->TakeLineCRLF(&line);
|
||||
if (!sz)
|
||||
if (!sz || sz < 0)
|
||||
break;
|
||||
responseHeaders.push_back(line);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user