Fix ATP requests not keeping track of all mapping redirects

This commit is contained in:
Ryan Huffman 2017-08-30 13:15:14 -07:00 committed by Atlante45
parent f89459525e
commit 70430c009d

View file

@ -92,10 +92,12 @@ void AssetResourceRequest::requestMappingForPath(const AssetPath& path) {
statTracker->incrementStat(STAT_ATP_MAPPING_REQUEST_SUCCESS);
// if we got a redirected path we need to store that with the resource request as relative path URL
if (request->wasRedirected() && _failOnRedirect) {
if (request->wasRedirected()) {
_relativePathURL = ATP_SCHEME + request->getRedirectedPath();
_result = RedirectFail;
}
if (request->wasRedirected() && _failOnRedirect) {
_result = RedirectFail;
failed = true;
} else {
requestHash(request->getHash());