Merge pull request #106 from macpp/firefox-connection

Allow firefox to connect
pull/110/head
Alexey Galakhov 4 years ago committed by GitHub
commit faf4b598a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/handshake/server.rs

@ -39,7 +39,7 @@ pub fn create_response(request: &Request) -> Result<Response> {
.headers()
.get("Connection")
.and_then(|h| h.to_str().ok())
.map(|h| h.eq_ignore_ascii_case("Upgrade"))
.map(|h| h.split(|c| c == ' ' || c == ',').any(|p| p.eq_ignore_ascii_case("Upgrade")))
.unwrap_or(false)
{
return Err(Error::Protocol(

Loading…
Cancel
Save