forked from shihaam/bml-proxy
		
	feat(main): also copy Cookie header to proxy request
				
					
				
			This commit is contained in:
		@@ -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\" }";
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user