Browse Source

WebInputStream: Report all headers

Status codes are already filtered in curlHeaderCallback, so there's no
need to remove them again in parseHttpHeaders. Request headers will
never include a status, so there's no need to remove the status in that
case.
v7.0.9
reuk 1 year ago
parent
commit
a5b74332c2
No known key found for this signature in database GPG Key ID: FCB43929F012EE5C
1 changed files with 1 additions and 4 deletions
  1. +1
    -4
      modules/juce_core/network/juce_WebInputStream.cpp

+ 1
- 4
modules/juce_core/network/juce_WebInputStream.cpp View File

@@ -61,11 +61,8 @@ StringPairArray WebInputStream::parseHttpHeaders (const String& headerData)
StringPairArray headerPairs;
auto headerLines = StringArray::fromLines (headerData);
// ignore the first line as this is the status line
for (int i = 1; i < headerLines.size(); ++i)
for (const auto& headersEntry : headerLines)
{
const auto& headersEntry = headerLines[i];
if (headersEntry.isNotEmpty())
{
const auto key = headersEntry.upToFirstOccurrenceOf (": ", false, false);


Loading…
Cancel
Save