support offline mode
@@ -91,6 +91,7 @@ fn main() -> std::result::Result<(), Box<dyn std::error::Error>> {
}
}
+ if !opt.offline {
let response = client.execute(request)?;
let headers = response.headers().clone();
@@ -103,6 +104,6 @@ fn main() -> std::result::Result<(), Box<dyn std::error::Error>> {
content_type,
&format_option,
);
-
+ }
Ok(())
}
