diff --git a/src/SFML/Network/Http.cpp b/src/SFML/Network/Http.cpp index 29c2c0bc6..0a88b2429 100644 --- a/src/SFML/Network/Http.cpp +++ b/src/SFML/Network/Http.cpp @@ -261,7 +261,10 @@ void Http::Response::parse(const std::string& data) std::istreambuf_iterator it(in); std::istreambuf_iterator itEnd; for (std::size_t i = 0; ((i < length) && (it != itEnd)); i++) - m_body.push_back(*it++); + { + m_body.push_back(*it); + ++it; + } } // Drop the rest of the line (chunk-extension)