mirror of
https://github.com/spiffcode/hostile-takeover.git
synced 2026-04-07 19:11:26 -06:00
Fix so that http post results get returned
This commit is contained in:
parent
b2e2d5efda
commit
c070a9169b
@ -133,7 +133,10 @@ bool HttpPost::FindStatusCode(int *status_code) {
|
||||
int cch = strlen(line);
|
||||
if (cch >= 15) {
|
||||
if (strncmp(line, "Content-Length:", 15) == 0) {
|
||||
base::Format::ToInteger(&line[15], 10, &cbBody);
|
||||
char *pszT = &line[15];
|
||||
while (*pszT == ' ')
|
||||
pszT++;
|
||||
base::Format::ToInteger(pszT, 10, &cbBody);
|
||||
}
|
||||
}
|
||||
if (strlen(line) == 0) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user