diff --git a/Needlework.Net.Desktop/Needlework.Net.Desktop.csproj b/Needlework.Net.Desktop/Needlework.Net.Desktop.csproj
index 589547a..07b15b0 100644
--- a/Needlework.Net.Desktop/Needlework.Net.Desktop.csproj
+++ b/Needlework.Net.Desktop/Needlework.Net.Desktop.csproj
@@ -11,8 +11,8 @@
False
app.ico
NeedleworkDotNet
- 0.4.2.0
- 0.4.2.0
+ 0.5.0.0
+ $(AssemblyVersion)
False
diff --git a/Needlework.Net.Desktop/ViewModels/ConsoleViewModel.cs b/Needlework.Net.Desktop/ViewModels/ConsoleViewModel.cs
index 93bf04d..0a2d1ec 100644
--- a/Needlework.Net.Desktop/ViewModels/ConsoleViewModel.cs
+++ b/Needlework.Net.Desktop/ViewModels/ConsoleViewModel.cs
@@ -15,10 +15,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;
@@ -59,18 +59,18 @@ namespace Needlework.Net.Desktop.ViewModels
var processInfo = Connector.GetProcessInfo();
var requestBody = WeakReferenceMessenger.Default.Send(new ContentRequestMessage(), "ConsoleRequestEditor").Response;
var content = new StringContent(requestBody, 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