Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

client: Send telemetry events with `Content-Type: application/json` (#18886)

Marshall Bowersb0a9005163e1
diff --git a/crates/client/src/telemetry.rs b/crates/client/src/telemetry.rs
index 5a752bc05f8..1dc3cedee28 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());