From 4bb288dd8678fd457e93accbd9240a746a4c2a06 Mon Sep 17 00:00:00 2001 From: Adrian McEwen Date: Tue, 5 May 2015 22:56:12 +0100 Subject: [PATCH] Fixes issue #10 where the library would crash on Intel Galileo and Edison. --- HttpClient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HttpClient.cpp b/HttpClient.cpp index 65fdf05..c095f76 100644 --- a/HttpClient.cpp +++ b/HttpClient.cpp @@ -41,7 +41,7 @@ void HttpClient::resetState() iStatusCode = 0; iContentLength = 0; iBodyLengthConsumed = 0; - iContentLengthPtr = 0; + iContentLengthPtr = kContentLengthPrefix; iHttpResponseTimeout = kHttpResponseTimeout; }