We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a74f9c commit ebc168cCopy full SHA for ebc168c
1 file changed
src/rpc/common.rs
@@ -96,9 +96,8 @@ pub(super) async fn http_read_from_stream_request(
96
// Now we know the request body size. Read it into the buffer.
97
buf.clear();
98
buf.resize(content_length, 0_u8);
99
- reader.read(buf).await?;
+ reader.read_exact(buf).await?;
100
101
- assert!(buf.len() == content_length);
102
Ok(content_length)
103
}
104
@@ -170,9 +169,8 @@ pub(super) async fn http_read_from_stream_response(
170
169
// Now we know the response body size. Read it into the buffer.
171
172
173
174
175
176
177
178
0 commit comments