Fix at_end_of_stream/1 for http read stream

This commit is contained in:
Adrián Arroyo Calle
2024-07-06 16:00:50 +02:00
parent 5f30c9599a
commit 08a9f7c068
3 changed files with 17 additions and 15 deletions

View File

@@ -1,4 +1,4 @@
use std::io::BufRead;
use bytes::{Bytes, buf::Reader};
use std::sync::{Arc, Condvar, Mutex};
use warp::http;
@@ -19,5 +19,5 @@ pub struct HttpRequestData {
pub headers: http::HeaderMap,
pub path: String,
pub query: String,
pub body: Box<dyn BufRead + Send>,
pub body: Reader<Bytes>,
}