not keep alive fix
This commit is contained in:
parent
4bcce84631
commit
e59dbd28fd
@ -326,7 +326,7 @@ impl FlowgateServer {
|
|||||||
|
|
||||||
// println!("wrote client body to server");
|
// println!("wrote client body to server");
|
||||||
|
|
||||||
{
|
if connected.1.support_keep_alive {
|
||||||
let mut head = Vec::new();
|
let mut head = Vec::new();
|
||||||
|
|
||||||
{
|
{
|
||||||
@ -378,6 +378,10 @@ impl FlowgateServer {
|
|||||||
if read == content_length { break }
|
if read == content_length { break }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
let mut buf = Vec::new();
|
||||||
|
connected.0.read_to_end(&mut buf).ok()?;
|
||||||
|
stream.write_all(&buf).ok()?;
|
||||||
}
|
}
|
||||||
|
|
||||||
// println!("wrote server response to client");
|
// println!("wrote server response to client");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user