Browse Source

fix 3xx redirects

master
Odilitime 5 years ago
parent
commit
98f95dac70
  1. 4
      src/WebResource.cpp

4
src/WebResource.cpp

@ -118,6 +118,10 @@ WebResource getOnlineWebResource(URL const& url, std::unique_ptr<std::map<std::s @@ -118,6 +118,10 @@ WebResource getOnlineWebResource(URL const& url, std::unique_ptr<std::map<std::s
}
logDebug() << "Redirect To: " << location << std::endl;
redirectLocation = location;
// download redirect
returnRes = getOnlineWebResource(redirectLocation, nullptr);
} else if (response.statusCode != 200) {
returnRes.resourceType = ResourceType::INVALID;
returnRes.raw = "Unsupported status code";

Loading…
Cancel
Save