Merge pull request #273 from kangalioo/msrv-1.51

Downgrade MSRV to 1.51
pull/287/head
Daniel Abramov 3 years ago committed by GitHub
commit bb546acd76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Cargo.toml
  2. 2
      src/handshake/client.rs

@ -11,7 +11,7 @@ documentation = "https://docs.rs/tungstenite/0.17.2"
repository = "https://github.com/snapview/tungstenite-rs" repository = "https://github.com/snapview/tungstenite-rs"
version = "0.17.2" version = "0.17.2"
edition = "2018" edition = "2018"
rust-version = "1.56" rust-version = "1.51"
include = ["benches/**/*", "src/**/*", "LICENSE-*", "README.md", "CHANGELOG.md"] include = ["benches/**/*", "src/**/*", "LICENSE-*", "README.md", "CHANGELOG.md"]
[package.metadata.docs.rs] [package.metadata.docs.rs]

@ -129,7 +129,7 @@ fn generate_request(mut request: Request) -> Result<(Vec<u8>, String)> {
// //
// See similar problem in `hyper`: https://github.com/hyperium/hyper/issues/1492 // See similar problem in `hyper`: https://github.com/hyperium/hyper/issues/1492
let headers = request.headers_mut(); let headers = request.headers_mut();
for header in WEBSOCKET_HEADERS { for &header in &WEBSOCKET_HEADERS {
let value = headers.remove(header).ok_or_else(|| { let value = headers.remove(header).ok_or_else(|| {
Error::Protocol(ProtocolError::InvalidHeader( Error::Protocol(ProtocolError::InvalidHeader(
HeaderName::from_bytes(header.as_bytes()).unwrap(), HeaderName::from_bytes(header.as_bytes()).unwrap(),

Loading…
Cancel
Save