From fb891a741956b2edb8a23e78c853d71440bccacc Mon Sep 17 00:00:00 2001 From: Eric Sagnes Date: Sun, 21 Sep 2014 13:09:40 +0900 Subject: Fix for the cowboy_rest template --- erlang.mk | 2 +- plugins/bootstrap.mk | 2 +- 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) ->" \ " {<<\"This is REST!\">>, 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) ->" \ " {<<\"This is REST!\">>, Req, State}." -- cgit v1.2.3