diff --git a/VRCAuthProxy/Program.cs b/VRCAuthProxy/Program.cs index 7ce3858..bc0f627 100644 --- a/VRCAuthProxy/Program.cs +++ b/VRCAuthProxy/Program.cs @@ -186,11 +186,7 @@ app.Use(async (context, next) => var account = apiAccounts.First(); var path = context.Request.Path.ToString().Replace("/api/1", "") + context.Request.QueryString; - var message = new HttpRequestMessage - { - RequestUri = new Uri("https://api.vrchat.cloud/api/1" + path), - Method = new HttpMethod(context.Request.Method) - }; + var message = new HttpRequestMessage(new HttpMethod(context.Request.Method), path); // Handle request body for methods that support content (POST, PUT, DELETE) if (context.Request.ContentLength > 0 || context.Request.Headers.ContainsKey("Transfer-Encoding"))