1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-13 00:04:19 +00:00

Misc fixes and tweaks for networking, pthreads, jucer project generation, drawables.

This commit is contained in:
Julian Storer 2010-06-09 20:11:43 +01:00
parent 1f21a94753
commit cc45ec88f5
16 changed files with 190 additions and 68 deletions

View file

@ -463,10 +463,10 @@ void juce_getInternetFileHeaders (void* handle, StringPairArray& headers)
for (int i = 0; i < s->headerLines.size(); ++i)
{
const String& headersEntry = s->headerLines[i];
const String key (headersEntry.upToFirstOccurrenceOf (": ", false, false));
const String value (headersEntry.fromFirstOccurrenceOf (": ", false, false));
const String key (headersEntry.upToFirstOccurrenceOf ("; ", false, false));
const String value (headersEntry.fromFirstOccurrenceOf ("; ", false, false));
const String previousValue (headers [key]);
headers.set (key, previousValue.isEmpty() ? value : (previousValue + ";" + value));
headers.set (key, previousValue.isEmpty() ? value : (previousValue + "," + value));
}
}
}