CookieStore cleanup/fixes
* Remove TODO * Remove Cookie::set_ setters * Do not expose SameSite enum, provide getters on Cookie instead * Simplify Response::cookies signature (now ignores errors)
This commit is contained in:
		
				
					committed by
					
						 Sean McArthur
						Sean McArthur
					
				
			
			
				
	
			
			
			
						parent
						
							954fdfae30
						
					
				
				
					commit
					9935a8e117
				
			| @@ -546,7 +546,6 @@ impl Client { | ||||
|                     .collect::<Vec<_>>() | ||||
|                     .join("; "); | ||||
|                 if !header.is_empty() { | ||||
|                     // TODO: is it safe to unwrap here? Investigate if Cookie content is always valid. | ||||
|                     headers.insert(::header::COOKIE, HeaderValue::from_bytes(header.as_bytes()).unwrap()); | ||||
|                 } | ||||
|             } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user