mirror of
				https://github.com/TeamPiped/piped-proxy.git
				synced 2024-08-14 23:50:45 +00:00 
			
		
		
		
	fix CI
This commit is contained in:
		
							parent
							
								
									67369a494a
								
							
						
					
					
						commit
						082d1ae31c
					
				
					 2 changed files with 7 additions and 7 deletions
				
			
		| 
						 | 
				
			
			@ -113,8 +113,6 @@ fn is_header_allowed(header: &str) -> bool {
 | 
			
		|||
        header,
 | 
			
		||||
        "host"
 | 
			
		||||
            | "authorization"
 | 
			
		||||
            | "origin"
 | 
			
		||||
            | "referer"
 | 
			
		||||
            | "cookie"
 | 
			
		||||
            | "etag"
 | 
			
		||||
            | "content-length"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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")]
 | 
			
		||||
{
 | 
			
		||||
    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];
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue