mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 16:55:07 +02:00
Fix ATP requests not keeping track of all mapping redirects
This commit is contained in:
parent
e9258ec97a
commit
31345e4264
1 changed files with 4 additions and 2 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue