Make it compile
This commit is contained in:
parent
fd33ff81c9
commit
1261696ba2
@ -53,14 +53,14 @@ impl FileHost for S3Host {
|
|||||||
|
|
||||||
if provider == "do" {
|
if provider == "do" {
|
||||||
reqwest::Client::new()
|
reqwest::Client::new()
|
||||||
.delete(format!(
|
.delete(&*format!(
|
||||||
"https://api.digitalocean.com/v2/cdn/endpoints/{}/cache",
|
"https://api.digitalocean.com/v2/cdn/endpoints/{}/cache",
|
||||||
self.bucket.name
|
self.bucket.name
|
||||||
))
|
))
|
||||||
.header(reqwest::header::CONTENT_TYPE, "application/json")
|
.header(reqwest::header::CONTENT_TYPE, "application/json")
|
||||||
.header(
|
.header(
|
||||||
reqwest::header::AUTHORIZATION,
|
reqwest::header::AUTHORIZATION,
|
||||||
&self.bucket.credentials.secret_key,
|
&self.bucket.credentials.secret_key.unwrap_or_else(""),
|
||||||
)
|
)
|
||||||
.body(
|
.body(
|
||||||
serde_json::json!({
|
serde_json::json!({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user