fix example

This commit is contained in:
Rob Ede 2021-01-11 10:15:42 +00:00
parent 8e9cdc6c22
commit e5bb20b391
No known key found for this signature in database
GPG Key ID: C2A3B36E841A91E6
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ async fn main() -> Result<(), Error> {
// Create request builder, configure request and send
let mut response = client
.get("https://www.rust-lang.org/")
.append_header("User-Agent", "Actix-web")
.append_header(("User-Agent", "Actix-web"))
.send()
.await?;