don't save cookies coming from different domain
@@ -276,8 +276,10 @@ fn main() -> Result<i32> {
}
if let Some(ref mut s) = session {
+ if orig_url.host() == response.url().host() {
s.save_cookies(&response.headers())?;
}
+ }
if print.response_headers {
printer.print_response_headers(&response)?;
