0
Fork 0
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:
Gary Rennie 2018-03-21 10:18:07 +00:00 committed by Loïc Hoguin
parent 5f0123eddb
commit 288deb5b88
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764

View file

@ -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).
----