diff options
Diffstat (limited to 'test/http_SUITE_data/rest_missing_callbacks.erl')
-rw-r--r-- | test/http_SUITE_data/rest_missing_callbacks.erl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/http_SUITE_data/rest_missing_callbacks.erl b/test/http_SUITE_data/rest_missing_callbacks.erl index 94bfbbd..fec308a 100644 --- a/test/http_SUITE_data/rest_missing_callbacks.erl +++ b/test/http_SUITE_data/rest_missing_callbacks.erl @@ -1,11 +1,12 @@ -module(rest_missing_callbacks). --export([init/3]). + +-export([init/2]). -export([allowed_methods/2]). -export([content_types_accepted/2]). -export([content_types_provided/2]). -init(_Transport, _Req, _Opts) -> - {upgrade, protocol, cowboy_rest}. +init(Req, Opts) -> + {rest, Req, Opts}. allowed_methods(Req, State) -> {[<<"GET">>, <<"PUT">>], Req, State}. |