diff --git a/Needlework.Net.Desktop/Needlework.Net.Desktop.csproj b/Needlework.Net.Desktop/Needlework.Net.Desktop.csproj
index be22c18..9d05620 100644
--- a/Needlework.Net.Desktop/Needlework.Net.Desktop.csproj
+++ b/Needlework.Net.Desktop/Needlework.Net.Desktop.csproj
@@ -12,7 +12,7 @@
app.ico
NeedleworkDotNet
0.4.1.0
- 0.4.1.0
+ $(AssemblyVersion)
False
diff --git a/Needlework.Net.Desktop/ViewModels/ConsoleViewModel.cs b/Needlework.Net.Desktop/ViewModels/ConsoleViewModel.cs
index ada8b48..43612b8 100644
--- a/Needlework.Net.Desktop/ViewModels/ConsoleViewModel.cs
+++ b/Needlework.Net.Desktop/ViewModels/ConsoleViewModel.cs
@@ -16,10 +16,10 @@ namespace Needlework.Net.Desktop.ViewModels
public partial class ConsoleViewModel : PageBase, IRecipient
{
public IAvaloniaReadOnlyList RequestMethods { get; } = new AvaloniaList(["GET", "POST", "PUT", "DELETE", "HEAD", "PATCH", "OPTIONS", "TRACE"]);
+ public IAvaloniaList RequestPaths { get; } = new AvaloniaList();
[ObservableProperty] private bool _isBusy = true;
[ObservableProperty] private bool _isRequestBusy = false;
- [ObservableProperty] private IAvaloniaReadOnlyList _requestPaths = new AvaloniaList();
[ObservableProperty] private string? _requestMethodSelected = "GET";
[ObservableProperty] private string? _requestPath = null;
[ObservableProperty] private string? _requestBody = null;
@@ -60,18 +60,25 @@ namespace Needlework.Net.Desktop.ViewModels
var processInfo = Connector.GetProcessInfo();
var requestBody = WeakReferenceMessenger.Default.Send(new ContentRequestMessage(), "ConsoleRequestEditor").Response;
var content = new StringContent(Regex.Replace(requestBody, @"\s+", ""), new System.Net.Http.Headers.MediaTypeHeaderValue("application/json"));
- var response = await Connector.SendAsync(method, RequestPath, content) ?? throw new Exception("Response is null.");
+ var response = await Connector.SendAsync(method, RequestPath, content);
var riotAuthentication = new RiotAuthentication(processInfo.RemotingAuthToken);
- var body = await response.Content.ReadAsStringAsync();
-
- body = !string.IsNullOrEmpty(body) ? JsonSerializer.Serialize(JsonSerializer.Deserialize