mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 17:00:13 +02:00
Fix ATP requests not keeping track of all mapping redirects
This commit is contained in:
parent
f89459525e
commit
70430c009d
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);
|
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 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();
|
_relativePathURL = ATP_SCHEME + request->getRedirectedPath();
|
||||||
_result = RedirectFail;
|
}
|
||||||
|
|
||||||
|
if (request->wasRedirected() && _failOnRedirect) {
|
||||||
|
_result = RedirectFail;
|
||||||
failed = true;
|
failed = true;
|
||||||
} else {
|
} else {
|
||||||
requestHash(request->getHash());
|
requestHash(request->getHash());
|
||||||
|
|
Loading…
Reference in a new issue