mirror of
https://github.com/cyanfish/naps2.git
synced 2024-09-17 18:58:11 +03:00
BugFix #266 - ESCL download from relative URI response target.
This commit is contained in:
parent
319b3e6ef3
commit
820d0f7755
@ -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
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user