mirror of
https://github.com/fafhrd91/actix-web
synced 2025-01-31 02:52:53 +01:00
fix awc readme example (#2076)
This commit is contained in:
parent
a55e87faaa
commit
d93314a683
@ -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…
x
Reference in New Issue
Block a user