BugFix #266 - ESCL download from relative URI response target.

This commit is contained in:
Adrian-Grimm 2023-12-30 13:37:51 +01:00
parent 319b3e6ef3
commit 820d0f7755

View File

@ -101,9 +101,11 @@ public class EsclClient
response.EnsureSuccessStatusCode();
Logger.LogDebug("POST OK");
var uri = response.Headers.Location!;
return new EsclJob
{
UriPath = response.Headers.Location!.AbsolutePath
UriPath = uri.IsAbsoluteUri ? uri.AbsolutePath : uri.OriginalString
};
}