Skip to content

Commit

Permalink
client: Send telemetry events with Content-Type: application/json (z…
Browse files Browse the repository at this point in the history
…ed-industries#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
  • Loading branch information
maxdeviant authored Oct 9, 2024
1 parent 801210c commit b0a9005
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/client/src/telemetry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand Down

0 comments on commit b0a9005

Please sign in to comment.