Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
aspacca committed Apr 7, 2024
1 parent 67369a4 commit 082d1ae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 0 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,6 @@ fn is_header_allowed(header: &str) -> bool {
header,
"host"
| "authorization"
| "origin"
| "referer"
| "cookie"
| "etag"
| "content-length"
Expand Down
12 changes: 7 additions & 5 deletions src/utils.rs
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
use once_cell::sync::Lazy;
use qstring::QString;
use reqwest::Url;
use std::borrow::Cow;
use std::collections::BTreeMap;
use std::env;

#[cfg(feature = "prefix-path")]
static PREFIX_PATH: Lazy<Option<String>> = 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<Option<String>> = 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];
Expand Down

0 comments on commit 082d1ae

Please sign in to comment.