From b77b583f56aebe5c00d1bfbf511845a6dd0c04c3 Mon Sep 17 00:00:00 2001 From: Mikhail Thompson Date: Thu, 27 Jun 2024 07:15:30 +0300 Subject: [PATCH] fix --- nksrv/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nksrv/Program.cs b/nksrv/Program.cs index 3c3ff69..f6a02ae 100644 --- a/nksrv/Program.cs +++ b/nksrv/Program.cs @@ -246,7 +246,7 @@ namespace nksrv Logger.Info("Download " + fs); // 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); using var request = new HttpRequestMessage(HttpMethod.Get, requestUri); request.Headers.TryAddWithoutValidation("host", "cloud.nikke-kr.com");