Changed .NET ready to be a get request

This commit is contained in:
tsommer committed 2024-08-29 08:58:57 +02:00
1 parent a224d2ab10
commit 2c48ef950c
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -80,7 +80,7 @@ public sealed class RustService(string apiPort) : IDisposable
{
const string URL = "/system/dotnet/ready";
this.logger!.LogInformation("Notifying Rust runtime that the app is ready.");
var response = await this.http.PostAsync(URL, new StringContent(string.Empty));
var response = await this.http.GetAsync(URL);
if (!response.IsSuccessStatusCode)
{
this.logger!.LogError($"Failed to notify Rust runtime that the app is ready: '{response.StatusCode}'");
+1 -1
View File
@@ -609,7 +609,7 @@ fn dotnet_port() -> String {
format!("{dotnet_server_port}")
}
#[post("/system/dotnet/ready")]
#[get("/system/dotnet/ready")]
async fn dotnet_ready() {
let main_window_spawn_clone = &MAIN_WINDOW;
let dotnet_server_port = *DOTNET_SERVER_PORT;