We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02a432f commit aa8eb94Copy full SHA for aa8eb94
ext/hyper_ruby/src/request.rs
@@ -1,3 +1,5 @@
1
+use std::os::raw::c_char;
2
+
3
use magnus::{value::{qnil, ReprValue}, RString, Value};
4
5
use bytes::Bytes;
@@ -53,7 +55,7 @@ impl Request {
53
55
let inner: VALUE = std::ptr::read(&rb_value as *const _ as *const VALUE);
54
56
rb_str_resize(inner, 0);
57
if body_len > 0 {
- rb_str_cat(inner, body.as_ptr(), body.len().try_into().unwrap());
58
+ rb_str_cat(inner, body.as_ptr() as *const c_char, body.len().try_into().unwrap());
59
}
60
61
0 commit comments