mirror of https://github.com/fafhrd91/actix-web
fix example
This commit is contained in:
parent
8e9cdc6c22
commit
e5bb20b391
|
@ -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?;
|
||||
|
||||
|
|
Loading…
Reference in New Issue