Update server.rs

pull/315/head
ssrlive 2 years ago committed by GitHub
parent 0ff2d772ae
commit 4d10cee4b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/handshake/server.rs

@ -93,7 +93,7 @@ pub fn create_response_with_body<T>(
Ok(create_parts(request)?.body(generate_body())?)
}
/// Write response to the stream `w`.
/// Write `response` to the stream `w`.
pub fn write_response<T>(mut w: impl io::Write, response: &HttpResponse<T>) -> Result<()> {
writeln!(
w,

Loading…
Cancel
Save