mirror of
https://github.com/JulianGro/overte.git
synced 2025-08-13 04:04:51 +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);
|
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