mirror of
https://github.com/EpinelPS/EpinelPS.git
synced 2025-12-13 23:44:45 +01:00
fix
This commit is contained in:
@@ -246,7 +246,7 @@ namespace nksrv
|
|||||||
Logger.Info("Download " + fs);
|
Logger.Info("Download " + fs);
|
||||||
|
|
||||||
// TODO: Ip might change
|
// TODO: Ip might change
|
||||||
string @base = ctx.RequestedPath.StartsWith("/prdenv") ? "prdenv" : "media";
|
string @base = ctx.Request.RawUrl.StartsWith("/prdenv") ? "prdenv" : "media";
|
||||||
var requestUri = new Uri("https://43.132.66.200/" + @base + ctx.RequestedPath);
|
var requestUri = new Uri("https://43.132.66.200/" + @base + ctx.RequestedPath);
|
||||||
using var request = new HttpRequestMessage(HttpMethod.Get, requestUri);
|
using var request = new HttpRequestMessage(HttpMethod.Get, requestUri);
|
||||||
request.Headers.TryAddWithoutValidation("host", "cloud.nikke-kr.com");
|
request.Headers.TryAddWithoutValidation("host", "cloud.nikke-kr.com");
|
||||||
|
|||||||
Reference in New Issue
Block a user