Revert "fix: also relay Content-Encoding"

* even if the server sends gzip data, our proxy always sends raw text

This reverts commit c53f37406f396cefba2a5b9e844e8c8ebe018467.
This commit is contained in:
Udit Karode 2022-08-10 20:07:23 +05:30
parent c53f37406f
commit 48b11221fe

View File

@ -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; 3] = ["Content-Type", "Cookie", "Content-Encoding"];
const FOR_COPY: [&'static str; 2] = ["Content-Type", "Cookie"];
const BASE: &str = "https://www.bankofmaldives.com.mv/internetbanking/api/";
const ERR: &str = "{ \"code\": 407, \"message\": \"Proxy failed\" }";