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
This commit is contained in:
Marshall Bowers 2024-10-08 20:25:07 -04:00 committed by GitHub
parent 801210cd50
commit b0a9005163
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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());