Changed .NET ready to be a get request

This commit is contained in:
Thorsten Sommer 2024-08-29 08:58:57 +02:00
parent a224d2ab10
commit 2c48ef950c
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108
2 changed files with 2 additions and 2 deletions

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}'");

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;