We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c71df3e commit 3b14335Copy full SHA for 3b14335
1 file changed
ext/hyper_ruby/src/response.rs
@@ -61,7 +61,9 @@ impl Response {
61
let body = self.response.body();
62
match body.clone().frame().now_or_never() {
63
Some(frame) => {
64
- let data_chunk = frame.unwrap().unwrap().into_data().unwrap();
+ let frame = frame.unwrap();
65
66
+ let data_chunk = frame.into_data().unwrap();
67
RString::from_slice(data_chunk.iter().as_slice())
68
}
69
None => RString::buf_new(0),
0 commit comments