From ceea7dc8eb2f4f6d9ec1ae761a96d13f722b7b6d Mon Sep 17 00:00:00 2001 From: Udit Karode Date: Mon, 8 Aug 2022 01:07:38 +0530 Subject: [PATCH] feat(main): also copy `Cookie` header to proxy request --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index d05f8f9..50b54a2 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; 1] = ["Content-Type"]; +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\" }";