From 082d1ae31c164e9125f2db9472fb6c439837a169 Mon Sep 17 00:00:00 2001 From: Andrea Spacca Date: Mon, 8 Apr 2024 06:45:39 +0900 Subject: [PATCH] fix CI --- src/main.rs | 2 -- src/utils.rs | 12 +++++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main.rs b/src/main.rs index 8ebf170..d255d45 100644 --- a/src/main.rs +++ b/src/main.rs @@ -113,8 +113,6 @@ fn is_header_allowed(header: &str) -> bool { header, "host" | "authorization" - | "origin" - | "referer" | "cookie" | "etag" | "content-length" diff --git a/src/utils.rs b/src/utils.rs index 5f733d5..3314be2 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -1,4 +1,3 @@ -use once_cell::sync::Lazy; use qstring::QString; use reqwest::Url; use std::borrow::Cow; @@ -6,10 +5,13 @@ use std::collections::BTreeMap; use std::env; #[cfg(feature = "prefix-path")] -static PREFIX_PATH: Lazy> = Lazy::new(|| match env::var("PREFIX_PATH") { - Ok(v) => Some(String::from(v)), - Err(e) => panic!("$PREFIX_PATH is not set ({})", e) -}); +{ + use once_cell::sync::Lazy; + static PREFIX_PATH: Lazy> = Lazy::new(|| match env::var("PREFIX_PATH") { + Ok(v) => Some(String::from(v)), + Err(e) => panic!("$PREFIX_PATH is not set ({})", e) + }); +} pub fn read_buf(buf: &[u8], pos: &mut usize) -> u8 { let byte = buf[*pos];