mirror of
https://github.com/actix/actix-web.git
synced 2025-02-21 05:16:17 +00:00
fix awc readme example (#2076)
This commit is contained in:
parent
a55e87faaa
commit
d93314a683
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ fn main() {
|
|||
|
||||
let res = client
|
||||
.get("http://www.rust-lang.org") // <- Create request builder
|
||||
.header("User-Agent", "Actix-web")
|
||||
.insert_header(("User-Agent", "Actix-web"))
|
||||
.send() // <- Send http request
|
||||
.await;
|
||||
|
||||
|
|
Loading…
Reference in a new issue