Bump version, fix bug where whitespace in request body is removed

This commit is contained in:
BlossomiShymae
2024-08-16 01:30:39 -05:00
parent b0b5476c48
commit 04058f12c1
3 changed files with 4 additions and 6 deletions

View File

@@ -8,7 +8,6 @@ using Needlework.Net.Desktop.Messages;
using System;
using System.Net.Http;
using System.Text.Json;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace Needlework.Net.Desktop.ViewModels
@@ -91,7 +90,7 @@ namespace Needlework.Net.Desktop.ViewModels
var uri = $"{path}{query}";
var requestBody = WeakReferenceMessenger.Default.Send(new ContentRequestMessage(), "EndpointRequestEditor").Response;
var content = new StringContent(Regex.Replace(requestBody, @"\s+", ""), new System.Net.Http.Headers.MediaTypeHeaderValue("application/json"));
var content = new StringContent(requestBody, new System.Net.Http.Headers.MediaTypeHeaderValue("application/json"));
var response = await Connector.SendAsync(method, $"{uri}", content) ?? throw new Exception("Response is null.");
var riotAuthentication = new RiotAuthentication(processInfo.RemotingAuthToken);