Bug in JUCE_HTTPSocketStream::open()


#1

In JUCE_HTTPSocketStream::open(), the code that reads the status code should be changed to this:

statusCode = responseHeader.fromFirstOccurrenceOf (T(" "), false, false) .substring (0, 3).getIntValue();

At the moment it reads the text right after the actual status code, so statusCode is always zero, which prevents redirection to an alternate url.


#2

doh! You’re right, thanks for that!