diff options
author | Aaron O'Mullan <aaron.omullan@gmail.com> | 2022-03-16 00:33:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-16 00:33:46 +0100 |
commit | bd481bf095f920a419ea55543f911e087f98f36f (patch) | |
tree | b4f97aabfd3734770c5367b1253511a02d86af87 /ext/http/lib.rs | |
parent | 672f66dde1f7ec87282d37e10cac2cdd36e5f181 (diff) |
feat(ops): optional OpState (#13954)
Diffstat (limited to 'ext/http/lib.rs')
-rw-r--r-- | ext/http/lib.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/ext/http/lib.rs b/ext/http/lib.rs index f57132555..535f52a6c 100644 --- a/ext/http/lib.rs +++ b/ext/http/lib.rs @@ -797,10 +797,7 @@ async fn op_http_read( } #[op] -fn op_http_websocket_accept_header( - _: &mut OpState, - key: String, -) -> Result<String, AnyError> { +fn op_http_websocket_accept_header(key: String) -> Result<String, AnyError> { let digest = ring::digest::digest( &ring::digest::SHA1_FOR_LEGACY_USE_ONLY, format!("{}258EAFA5-E914-47DA-95CA-C5AB0DC85B11", key).as_bytes(), |