diff options
| author | MatthieuCoder <matthieu@matthieu-dev.xyz> | 2023-01-05 19:39:29 +0400 |
|---|---|---|
| committer | MatthieuCoder <matthieu@matthieu-dev.xyz> | 2023-01-05 19:39:29 +0400 |
| commit | 258c06244989d98c437f9cb90cd45c97c0940c32 (patch) | |
| tree | 721b32ac9e811b99dbb2c36b2dd7c0246b1947fd /exes/rest/src/handler.rs | |
| parent | 773d26aed0a86d5aa395e72b7a67aaf4f90cef89 (diff) | |
fix bug
Diffstat (limited to 'exes/rest/src/handler.rs')
| -rw-r--r-- | exes/rest/src/handler.rs | 7 |
1 files changed, 1 insertions, 6 deletions
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")); |
