From a59103aad5f9fab61c3226dc57d1c72532e53ad3 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Tue, 15 Aug 2017 15:38:47 -0700 Subject: [PATCH] truncate filename for relative path URL in RR --- libraries/networking/src/AssetResourceRequest.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/networking/src/AssetResourceRequest.cpp b/libraries/networking/src/AssetResourceRequest.cpp index ecaa6efc1e..e228582ca9 100644 --- a/libraries/networking/src/AssetResourceRequest.cpp +++ b/libraries/networking/src/AssetResourceRequest.cpp @@ -94,6 +94,9 @@ void AssetResourceRequest::requestMappingForPath(const AssetPath& path) { // if we got a redirected path we need to store that with the resource request as relative path URL if (request->wasRedirected()) { _relativePathURL = ATP_SCHEME + request->getRedirectedPath(); + + // truncate the filename for the re-directed asset so we actually have a path + _relativePathURL = _relativePathURL.adjusted(QUrl::RemoveFilename); } break;