Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
jcaffrey committed Aug 3, 2024
1 parent 01650bf commit f0c3868
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/request/messages_send.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ impl<'a> ::std::future::IntoFuture for FluentRequest<'a, MessagesSendRequest> {
let mut r = self.client.client.post(url);
// r = r.set_query(self.params);

r = r.body(httpclient::InMemoryBody::Text(json!({"raw": self.params.message}).to_string()));
// r = r.body(httpclient::InMemoryBody::Json(json!({"message": {"raw": self.params.message}})));
r = r.body(httpclient::InMemoryBody::Json(json!({"raw": self.params.message})));
// r = r.body(httpclient::InMemoryBody::Text(json!({"message": {"raw": self.params.message}}).to_string()));

// dbg!(&r);
Expand Down

0 comments on commit f0c3868

Please sign in to comment.