Skip to content

Commit

Permalink
mirror-intel: use head (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
skyzh authored Dec 22, 2020
1 parent f455d5a commit 152a48e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mirror_intel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ impl SnapshotStorage<String> for MirrorIntel {
impl TargetStorage<String> for MirrorIntel {
async fn put_object(&self, item: String, mission: &Mission) -> Result<()> {
let target_url = format!("{}/{}", self.config.base, item);
let response = self.client.get(&target_url).send().await?;
let response = self.client.head(&target_url).send().await?;
let headers = response.headers().clone();
drop(response);

Expand Down

0 comments on commit 152a48e

Please sign in to comment.