From c070a9169b0143bccf34e8a1bc6abf62b8dfe3d2 Mon Sep 17 00:00:00 2001 From: Scott Ludwig Date: Fri, 1 Jan 2016 14:03:17 -0800 Subject: [PATCH] Fix so that http post results get returned --- server/httppost.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/httppost.cpp b/server/httppost.cpp index dbfe518..b4efc23 100644 --- a/server/httppost.cpp +++ b/server/httppost.cpp @@ -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) {