From 8f8e06e661385eb240db2728113f0389def319eb Mon Sep 17 00:00:00 2001 From: Leonora Tindall Date: Wed, 12 Jul 2023 18:08:17 -0500 Subject: [PATCH] Allow header on success --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index 13fe114..af6cd78 100644 --- a/src/main.rs +++ b/src/main.rs @@ -106,6 +106,7 @@ fn main() -> Result<(), Error> { let mut client_body = beresp .clone_without_body() + .with_header(header::ALLOW, "GET, HEAD") .with_content_type(mime::TEXT_HTML_UTF_8) .stream_to_client();