revert all that because somehow it fixes it????
This commit is contained in:
parent
266dc9232e
commit
cb8b4b5f0c
1 changed files with 5 additions and 1 deletions
|
|
@ -186,7 +186,11 @@ 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(new HttpMethod(context.Request.Method), path);
|
||||
var message = new HttpRequestMessage
|
||||
{
|
||||
RequestUri = new Uri("https://api.vrchat.cloud/api/1" + path),
|
||||
Method = new HttpMethod(context.Request.Method)
|
||||
};
|
||||
|
||||
// Handle request body for methods that support content (POST, PUT, DELETE)
|
||||
if (context.Request.ContentLength > 0 || context.Request.Headers.ContainsKey("Transfer-Encoding"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue