From b0a9005163e16f1ed8f7a4204e6d8ab6ac908a02 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Tue, 8 Oct 2024 20:25:07 -0400 Subject: [PATCH] client: Send telemetry events with `Content-Type: application/json` (#18886) This PR updates the telemetry events sent to collab to use `Content-Type: application/json` instead of `Content-Type: text/plain`. The POST bodies are JSON, so `application/json` is the correct MIME type. I suspect the `text/plain` is a remnant from when the events were still going through Vercel. Release Notes: - N/A --- crates/client/src/telemetry.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/client/src/telemetry.rs b/crates/client/src/telemetry.rs index 5a752bc05f..1dc3cedee2 100644 --- a/crates/client/src/telemetry.rs +++ b/crates/client/src/telemetry.rs @@ -653,7 +653,7 @@ impl Telemetry { .build_zed_api_url("/telemetry/events", &[])? .as_ref(), ) - .header("Content-Type", "text/plain") + .header("Content-Type", "application/json") .header("x-zed-checksum", checksum) .body(json_bytes.into());