From: MatthieuCoder Date: Thu, 5 Jan 2023 15:39:29 +0000 (+0400) Subject: fix bug X-Git-Tag: v0.1.1~44 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=258c06244989d98c437f9cb90cd45c97c0940c32;p=matthieu%2Fnova.git fix bug --- diff --git a/exes/rest/src/handler.rs b/exes/rest/src/handler.rs index 6168c9d..8b9463f 100644 --- a/exes/rest/src/handler.rs +++ b/exes/rest/src/handler.rs @@ -89,12 +89,7 @@ pub async fn handle_request( } }; let time_took_ticket = Instant::now() - start_ticket_request; - - request.headers_mut().insert( - AUTHORIZATION, - HeaderValue::from_bytes(token.as_bytes()) - .expect("strings are guaranteed to be valid utf-8"), - ); + request .headers_mut() .insert(HOST, HeaderValue::from_static("discord.com"));