From 0607f5efa46edfc43540b99d9f65cf6abdb31579 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 23 Feb 2024 18:18:34 +0100 Subject: [PATCH] Use reqwest::header::CONTENT_TYPE --- magic-nix-cache/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/magic-nix-cache/src/main.rs b/magic-nix-cache/src/main.rs index 0a1d24f..ae6e1f2 100644 --- a/magic-nix-cache/src/main.rs +++ b/magic-nix-cache/src/main.rs @@ -302,7 +302,7 @@ async fn main_cli() { if let Some(startup_notification_url) = args.startup_notification_url { let response = reqwest::Client::new() .post(startup_notification_url) - .header("Content-Type", "application/json") + .header(reqwest::header::CONTENT_TYPE, "application/json") .body("{}") .send() .await; @@ -356,7 +356,7 @@ async fn post_build_hook(out_paths: &str) { let response = reqwest::Client::new() .post(format!("http://{}/api/enqueue-paths", &args.server)) - .header("Content-Type", "application/json") + .header(reqwest::header::CONTENT_TYPE, "application/json") .body(serde_json::to_string(&request).unwrap()) .send() .await;