fix cbor http headers (#3866)

This commit is contained in:
Raphael Darley 2024-04-12 21:58:47 +01:00 committed by GitHub
parent f3e217f12f
commit 2f0f8dcc93
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -53,5 +53,5 @@ pub fn res_http(res: Response) -> Result<AxumResponse, RpcError> {
// Serialize the value into CBOR binary data
ciborium::into_writer(&val.0, &mut res).unwrap();
// Return the message length, and message as binary
Ok(([(CONTENT_TYPE, HeaderValue::from(ContentType::Surrealdb))], res).into_response())
Ok(([(CONTENT_TYPE, HeaderValue::from(ContentType::ApplicationCbor))], res).into_response())
}