From 2f0f8dcc935112b130993888c37eeb916cd190d7 Mon Sep 17 00:00:00 2001 From: Raphael Darley Date: Fri, 12 Apr 2024 21:58:47 +0100 Subject: [PATCH] fix cbor http headers (#3866) --- src/rpc/format/cbor/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rpc/format/cbor/mod.rs b/src/rpc/format/cbor/mod.rs index 1bb0f950..498ecff1 100644 --- a/src/rpc/format/cbor/mod.rs +++ b/src/rpc/format/cbor/mod.rs @@ -53,5 +53,5 @@ pub fn res_http(res: Response) -> Result { // 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()) }