Skip to content

Commit b0a9005

Browse files
authored
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
1 parent 801210c commit b0a9005

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/client/src/telemetry.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ impl Telemetry {
653653
.build_zed_api_url("/telemetry/events", &[])?
654654
.as_ref(),
655655
)
656-
.header("Content-Type", "text/plain")
656+
.header("Content-Type", "application/json")
657657
.header("x-zed-checksum", checksum)
658658
.body(json_bytes.into());
659659

0 commit comments

Comments
 (0)