From c53f37406f396cefba2a5b9e844e8c8ebe018467 Mon Sep 17 00:00:00 2001 From: Udit Karode Date: Tue, 9 Aug 2022 02:50:25 +0530 Subject: [PATCH] fix: also relay Content-Encoding --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 50b54a2..03ecd3e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -9,7 +9,7 @@ use unicase::Ascii; use warp::hyper::HeaderMap; use warp::{http::Method, http::Response, hyper::body::Bytes, path::FullPath, Filter}; -const FOR_COPY: [&'static str; 2] = ["Content-Type", "Cookie"]; +const FOR_COPY: [&'static str; 3] = ["Content-Type", "Cookie", "Content-Encoding"]; const BASE: &str = "https://www.bankofmaldives.com.mv/internetbanking/api/"; const ERR: &str = "{ \"code\": 407, \"message\": \"Proxy failed\" }";