mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 20:30:23 +00:00
Remove duplicate keys from map in inform docs
This is the equivalent way of doing the same thing using a single header.
This commit is contained in:
parent
5f0123eddb
commit
288deb5b88
1 changed files with 1 additions and 2 deletions
|
@ -308,8 +308,7 @@ response.
|
|||
[source,erlang]
|
||||
----
|
||||
Req = cowboy_req:inform(103, #{
|
||||
<<"link">> => <<"</style.css>; rel=preload; as=style">>,
|
||||
<<"link">> => <<"</script.js>; rel=preload; as=script">>
|
||||
<<"link">> => <<"</style.css>; rel=preload; as=style, </script.js>; rel=preload; as=script">>
|
||||
}, Req0).
|
||||
----
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue