Skip to content

Commit

Permalink
Fix proxy log
Browse files Browse the repository at this point in the history
  • Loading branch information
HeHang0 committed Oct 25, 2023
1 parent 74d6c16 commit 28fe4f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions windows/Server/HttpHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,9 @@ public static async Task Proxy(HttpListenerContext ctx)
ProxyResponseData proxyResData;
string queryUrl = ctx.Request.QueryString["url"] ?? string.Empty;
var proxyData = ProxyRequestData.Parse(string.IsNullOrWhiteSpace(queryUrl) ? ctx.Request.DataAsString() : queryUrl);
Logger.Logger.Debug("HttpProxy", proxyData.Method, queryUrl);
Logger.Logger.Debug("HttpProxy", proxyData.Method, proxyData.Url);
proxyResData = await HttpProxy.Request(proxyData);
Logger.Logger.Debug("HttpProxy", queryUrl, proxyResData.Data.Length, proxyResData.ContentLength);
Logger.Logger.Debug("HttpProxy", proxyData.Url, proxyResData.Data.Length, proxyResData.ContentLength);
ctx.Response.SetHeaders(proxyResData.Headers);
ctx.Response.StatusCode = proxyResData.StatusCode;
ctx.Response.ContentType = proxyResData.ContentType;
Expand Down

0 comments on commit 28fe4f9

Please sign in to comment.