From 3a9da4d51d3868701c4622c71fb297aa6871b9d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren?= Date: Fri, 22 Nov 2024 16:51:00 -0600 Subject: [PATCH] Use standard response Content-Type application/json --- server/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/lib.rs b/server/src/lib.rs index f8d9ccc..44ab11c 100644 --- a/server/src/lib.rs +++ b/server/src/lib.rs @@ -217,7 +217,7 @@ impl Server { let response = http::response::Builder::new() .status(200) - .header("Content-Type", "application/json-rpc") + .header("Content-Type", "application/json") .body(data.as_bytes().to_owned()) .unwrap(); // As long as the hard-coded status code and content-type is correct, this won't fail.