Update request.rs

This commit is contained in:
SwayStar123
2023-02-26 16:59:26 +05:30
committed by Martin Algesten
parent 2b86691a81
commit efdd55421f

View File

@@ -197,7 +197,7 @@ impl Request {
} }
let json_bytes = serde_json::to_vec(&data) let json_bytes = serde_json::to_vec(&data)
.expect("Failed to serialze data passed to send_json into JSON"); .expect("Failed to serialize data passed to send_json into JSON");
self.do_call(Payload::Bytes(&json_bytes)) self.do_call(Payload::Bytes(&json_bytes))
} }