aboutsummaryrefslogtreecommitdiffstats
path: root/test/http_SUITE_data/rest_post_charset_resource.erl
diff options
context:
space:
mode:
Diffstat (limited to 'test/http_SUITE_data/rest_post_charset_resource.erl')
-rw-r--r--test/http_SUITE_data/rest_post_charset_resource.erl10
1 files changed, 7 insertions, 3 deletions
diff --git a/test/http_SUITE_data/rest_post_charset_resource.erl b/test/http_SUITE_data/rest_post_charset_resource.erl
index 9ccfa61..7b7c49c 100644
--- a/test/http_SUITE_data/rest_post_charset_resource.erl
+++ b/test/http_SUITE_data/rest_post_charset_resource.erl
@@ -1,8 +1,12 @@
-module(rest_post_charset_resource).
--export([init/3, allowed_methods/2, content_types_accepted/2, from_text/2]).
-init(_Transport, _Req, _Opts) ->
- {upgrade, protocol, cowboy_rest}.
+-export([init/2]).
+-export([allowed_methods/2]).
+-export([content_types_accepted/2]).
+-export([from_text/2]).
+
+init(Req, Opts) ->
+ {rest, Req, Opts}.
allowed_methods(Req, State) ->
{[<<"POST">>], Req, State}.