Browse Source

Remove duplicate keys from map in inform docs

This is the equivalent way of doing the same thing using a single header.
Gary Rennie 7 years ago
parent
commit
288deb5b88
1 changed files with 1 additions and 2 deletions
  1. 1 2
      doc/src/guide/resp.asciidoc

+ 1 - 2
doc/src/guide/resp.asciidoc

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