summaryrefslogtreecommitdiff
path: root/exes
diff options
context:
space:
mode:
authorMatthieuCoder <matthieu@matthieu-dev.xyz>2023-01-05 19:39:29 +0400
committerMatthieuCoder <matthieu@matthieu-dev.xyz>2023-01-05 19:39:29 +0400
commit258c06244989d98c437f9cb90cd45c97c0940c32 (patch)
tree721b32ac9e811b99dbb2c36b2dd7c0246b1947fd /exes
parent773d26aed0a86d5aa395e72b7a67aaf4f90cef89 (diff)
fix bug
Diffstat (limited to 'exes')
-rw-r--r--exes/rest/src/handler.rs7
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"));