diff --git a/pyroscope/shared.js b/pyroscope/shared.js index 380f8f59..8e00dfdb 100644 --- a/pyroscope/shared.js +++ b/pyroscope/shared.js @@ -66,7 +66,7 @@ const wrapResponse = (hndl) => { const strRes = JSON.stringify(normalizeProtoResponse(_res.toObject())) return res.code(200).send(strRes) } - return res.code(200).send(Buffer.from(_res.serializeBinary())) + return res.code(200).type('application/proto').send(Buffer.from(_res.serializeBinary())) } }