Skip to content

Commit

Permalink
Fixed a wrong header name which caused WS client socket upgrade to fail
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmarkov committed Feb 1, 2024
1 parent b4d6e38 commit bdf28bb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "edge-net"
version = "0.7.0"
version = "0.7.1"
authors = ["Ivan Markov <ivan.markov@gmail.com>"]
edition = "2021"
categories = ["embedded", "hardware-support"]
Expand Down Expand Up @@ -113,7 +113,7 @@ octseq = { version = "0.3.2", default-features = false }

edge-captive = { version = "0.2.0", path = "edge-captive", default-features = false }
edge-dhcp = { version = "0.2.0", path = "edge-dhcp", default-features = false }
edge-http = { version = "0.2.0", path = "edge-http", default-features = false }
edge-http = { version = "0.2.1", path = "edge-http", default-features = false }
edge-mdns = { version = "0.2.0", path = "edge-mdns", default-features = false }
edge-mqtt = { version = "0.2.0", path = "edge-mqtt", default-features = false }
edge-raw = { version = "0.2.0", path = "edge-raw", default-features = false }
Expand Down
3 changes: 3 additions & 0 deletions edge-http/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.2.1] - 2024-02-01
* Fixed a wrong header name which caused WS client socket upgrade to fail

## [0.2.0] - 2024-02-01
* Remove unnecessary lifetimes when implementing the `embedded-svc` traits
* Server: new trait, `TaskHandler` which has an extra `task_id` parameter of type `usize`. This allows the request handling code to take advantage of the fact that - since the number of handlers when running a `Server` instance is fixed - it can store data related to handlers in a simple static array of the same size as the number of handlers that the server is running
Expand Down
2 changes: 1 addition & 1 deletion edge-http/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "edge-http"
version = "0.2.0"
version = "0.2.1"
edition = "2021"
rust-version = "1.75"
description = "Async + `no_std` + no-alloc implementation of the HTTP protocol"
Expand Down
2 changes: 1 addition & 1 deletion edge-http/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ pub mod ws {
connection = value.eq_ignore_ascii_case("Upgrade");
} else if name.eq_ignore_ascii_case("Upgrade") {
upgrade = value.eq_ignore_ascii_case("websocket");
} else if name.eq_ignore_ascii_case("Sec-WebSocket-Key") {
} else if name.eq_ignore_ascii_case("Sec-WebSocket-Accept") {
let sec_key = sec_key_encode(nonce, buf);

let mut sha1 = sha1_smol::Sha1::new();
Expand Down

0 comments on commit bdf28bb

Please sign in to comment.