Merge pull request #248 from FlorianUekermann/patch-1

replace unwrap with ?
pull/250/head
Daniel Abramov 3 years ago committed by GitHub
commit 6ff4ffa8e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/handshake/server.rs

@ -103,7 +103,7 @@ fn write_response<T>(mut w: impl io::Write, response: &HttpResponse<T>) -> Resul
)?;
for (k, v) in response.headers() {
writeln!(w, "{}: {}\r", k, v.to_str()?).unwrap();
writeln!(w, "{}: {}\r", k, v.to_str()?)?;
}
writeln!(w, "\r")?;

Loading…
Cancel
Save