From 08b99f39093ef8f0363bf943ab6719ed0f9d7b21 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Thu, 26 Oct 2023 18:39:04 +0200 Subject: chore: update base64 crate (#20877) --- ext/http/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ext/http/lib.rs') diff --git a/ext/http/lib.rs b/ext/http/lib.rs index 7d2397fff..d47011119 100644 --- a/ext/http/lib.rs +++ b/ext/http/lib.rs @@ -3,6 +3,8 @@ use async_compression::tokio::write::BrotliEncoder; use async_compression::tokio::write::GzipEncoder; use async_compression::Level; +use base64::prelude::BASE64_STANDARD; +use base64::Engine; use cache_control::CacheControl; use deno_core::error::custom_error; use deno_core::error::AnyError; @@ -990,7 +992,7 @@ fn op_http_websocket_accept_header( &ring::digest::SHA1_FOR_LEGACY_USE_ONLY, format!("{key}258EAFA5-E914-47DA-95CA-C5AB0DC85B11").as_bytes(), ); - Ok(base64::encode(digest)) + Ok(BASE64_STANDARD.encode(digest)) } #[op2(async)] -- cgit v1.2.3