Index: Source/platform/network/HTTPRequest.cpp |
diff --git a/Source/platform/network/HTTPRequest.cpp b/Source/platform/network/HTTPRequest.cpp |
index cd1694e56032c0760a6fbd8be3c5904314ce3563..b0533ee09081866397e932fac4053f6ec14cd47b 100644 |
--- a/Source/platform/network/HTTPRequest.cpp |
+++ b/Source/platform/network/HTTPRequest.cpp |
@@ -81,7 +81,7 @@ size_t HTTPRequest::parseHeaders(const char* data, size_t length, String& failur |
const char* end = data + length; |
AtomicString name; |
AtomicString value; |
- for (; p < data + length; p++) { |
+ while (p < data + length) { |
size_t consumedLength = parseHTTPHeader(p, end - p, failureReason, name, value); |
if (!consumedLength) |
return 0; |