|
size_t find302Status = httpHeaderStr.find(0, "302 Found"); |
Servers are not required to send the reason phrase in the HTTP status and will send just HTTP/1.1 302 instead of HTTP/1.1 302 Found. For example, Tomcat 9 removed their sendReasonPhrase option altogether, meaning Tomcat 9+ servers will only send 302 instead of 302 Found. This code should instead check for the string "302" in the HTTP status header.
pxCore/src/rtFileDownloader.cpp
Line 1230 in 895719a
Servers are not required to send the reason phrase in the HTTP status and will send just
HTTP/1.1 302instead ofHTTP/1.1 302 Found. For example, Tomcat 9 removed theirsendReasonPhraseoption altogether, meaning Tomcat 9+ servers will only send302instead of302 Found. This code should instead check for the string"302"in the HTTP status header.