refactor: Use cURL's own basic auth implementation
Drops the dependency on the base64-crate, which it turns out isn't necessary as cURL has this built-in.
This commit is contained in:
		
							parent
							
								
									de86cc551a
								
							
						
					
					
						commit
						acc7e64a0d
					
				
					 3 changed files with 15 additions and 21 deletions
				
			
		| 
						 | 
				
			
			@ -101,7 +101,7 @@ fn test_bearer_auth() {
 | 
			
		|||
    assert!(response.is_success(), "authorized request should succeed");
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#[cfg(feature = "basic_auth")] #[test]
 | 
			
		||||
#[test]
 | 
			
		||||
fn test_basic_auth() {
 | 
			
		||||
    let request = Request::new(
 | 
			
		||||
        Method::Get, "https://httpbin.org/basic-auth/alan_watts/oneness"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue