Skip to content

Commit

Permalink
correct copy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Young-Flash committed Feb 15, 2023
1 parent f92b267 commit 6595b30
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/services/webdav/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -373,9 +373,9 @@ impl WebdavBackend {
let url = format!("{}{}", self.endpoint, percent_encode_path(&p));

let mut req = if self.authorization.is_empty() {
Request::head(&url)
Request::get(&url)
} else {
Request::head(&url).header(AUTHORIZATION, &self.authorization)
Request::get(&url).header(AUTHORIZATION, &self.authorization)
};

if !range.is_full() {
Expand Down Expand Up @@ -426,9 +426,9 @@ impl WebdavBackend {
let url = format!("{}{}", self.endpoint, percent_encode_path(&p));

let req = if self.authorization.is_empty() {
Request::get(&url)
Request::head(&url)
} else {
Request::get(&url).header(AUTHORIZATION, &self.authorization)
Request::head(&url).header(AUTHORIZATION, &self.authorization)
};

let req = req
Expand Down

0 comments on commit 6595b30

Please sign in to comment.