aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2014-09-24 12:42:39 +0300
committerLoïc Hoguin <[email protected]>2014-09-24 12:42:39 +0300
commitdc36eace3e0b10dffcd0ad1135a9a2b0d4ffd938 (patch)
tree9f5bd1625d84127404c5c6cd2e03332b6a82d2aa
parent0951a6bf501dc9ef9e4249fc72ea4cc626e25e6f (diff)
parentfb891a741956b2edb8a23e78c853d71440bccacc (diff)
downloaderlang.mk-dc36eace3e0b10dffcd0ad1135a9a2b0d4ffd938.tar.gz
erlang.mk-dc36eace3e0b10dffcd0ad1135a9a2b0d4ffd938.tar.bz2
erlang.mk-dc36eace3e0b10dffcd0ad1135a9a2b0d4ffd938.zip
Merge branch 'rest_template_fix' of git://github.com/ericsagnes/erlang.mk
-rw-r--r--erlang.mk2
-rw-r--r--plugins/bootstrap.mk2
2 files changed, 2 insertions, 2 deletions
diff --git a/erlang.mk b/erlang.mk
index 12c2502..4d4d138 100644
--- a/erlang.mk
+++ b/erlang.mk
@@ -421,7 +421,7 @@ tpl_cowboy_rest = "-module($(n))." \
" {upgrade, protocol, cowboy_rest}." \
"" \
"content_types_provided(Req, State) ->" \
- " {[{{<<\"text\">>, <<\"html\">>, '_'}, get_html}], Req, State}." \
+ " {[{{<<\"text\">>, <<\"html\">>, '*'}, get_html}], Req, State}." \
"" \
"get_html(Req, State) ->" \
" {<<\"<html><body>This is REST!</body></html>\">>, Req, State}."
diff --git a/plugins/bootstrap.mk b/plugins/bootstrap.mk
index c3615be..084cde3 100644
--- a/plugins/bootstrap.mk
+++ b/plugins/bootstrap.mk
@@ -162,7 +162,7 @@ tpl_cowboy_rest = "-module($(n))." \
" {upgrade, protocol, cowboy_rest}." \
"" \
"content_types_provided(Req, State) ->" \
- " {[{{<<\"text\">>, <<\"html\">>, '_'}, get_html}], Req, State}." \
+ " {[{{<<\"text\">>, <<\"html\">>, '*'}, get_html}], Req, State}." \
"" \
"get_html(Req, State) ->" \
" {<<\"<html><body>This is REST!</body></html>\">>, Req, State}."