aboutsummaryrefslogtreecommitdiffstats
path: root/examples/compress_response/src/toppage_handler.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2017-01-22 20:17:52 +0100
committerLoïc Hoguin <[email protected]>2017-01-22 20:17:52 +0100
commit3c198f7d90ee7b482ee00e66d12699dd645442e7 (patch)
treea11e09c1df174b2a8f5b3c120036ae76ed82de7f /examples/compress_response/src/toppage_handler.erl
parent413196ace15552f21d958a5f0c72338de631941a (diff)
downloadcowboy-3c198f7d90ee7b482ee00e66d12699dd645442e7.tar.gz
cowboy-3c198f7d90ee7b482ee00e66d12699dd645442e7.tar.bz2
cowboy-3c198f7d90ee7b482ee00e66d12699dd645442e7.zip
Fix and update the compress example to use cowboy_compress_h
Diffstat (limited to 'examples/compress_response/src/toppage_handler.erl')
-rw-r--r--examples/compress_response/src/toppage_handler.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/compress_response/src/toppage_handler.erl b/examples/compress_response/src/toppage_handler.erl
index 35a3b9c..67b8fea 100644
--- a/examples/compress_response/src/toppage_handler.erl
+++ b/examples/compress_response/src/toppage_handler.erl
@@ -19,5 +19,5 @@ have established the ability to work at virtually identical tasks and obtained
considerable respect for their achievements. There are also cattle handlers
in many other parts of the world, particularly South America and Australia,
who perform work similar to the cowboy in their respective nations.\n">>,
- Req = cowboy_req:reply(200, [], BigBody, Req0),
+ Req = cowboy_req:reply(200, #{}, BigBody, Req0),
{ok, Req, Opts}.