Skip to content

Commit

Permalink
fix: absolute path not include query string
Browse files Browse the repository at this point in the history
  • Loading branch information
phuchptty committed May 28, 2022
1 parent 3b7701a commit b1d86a7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion PPS Proxy/Configuration.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

FORWARD_HOST = localhost

FORCE_SCHEMA = false
FORCE_SCHEMA = true

SCHEMA_URL = http

Expand Down
2 changes: 1 addition & 1 deletion PPS Proxy/PPS Proxy.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<PackageReadmeFile>README.md</PackageReadmeFile>
<RepositoryUrl>https://github.com/The-P-Group/PhoenixPS-Proxy</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<Version>1.1.2</Version>
<Version>1.1.3</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions PPS Proxy/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

string forwardHost = appConfig["AppConfiguration"]["FORWARD_HOST"] ?? "localhost";
string schemaUrl = appConfig["AppConfiguration"]["SCHEMA_URL"] ?? "http";
string forceSchema = appConfig["AppConfiguration"]["FORCE_SCHEMA"] ?? "false";
string forceSchema = appConfig["AppConfiguration"]["FORCE_SCHEMA"] ?? "true";
int listenPort = Int32.Parse(appConfig["AppConfiguration"]["PROXY_PORT"] ?? "8080");
bool parseBody = bool.Parse(appConfig["AppConfiguration"]["PARSE_BODY"] ?? "false");

Expand All @@ -33,7 +33,7 @@ Task OnRequest(object sender, SessionEventArgs e)

string hostUrl = e.HttpClient.Request.Host is not null ? e.HttpClient.Request.Host : e.HttpClient.Request.RequestUri.Host;

string abPath = e.HttpClient.Request.RequestUri.AbsolutePath;
string abPath = e.HttpClient.Request.RequestUri.PathAndQuery;

var builder = new UriBuilder();

Expand Down

0 comments on commit b1d86a7

Please sign in to comment.