From 266dc9232ec7bb1588b2c67f2317b1ec480d5309 Mon Sep 17 00:00:00 2001 From: Lillith Fox Date: Fri, 10 Jan 2025 14:25:53 -0500 Subject: [PATCH] different constructor for the HttpRequestMessage? --- VRCAuthProxy/Program.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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"))