aboutsummaryrefslogtreecommitdiffstats
path: root/test/http_SUITE_data/http_multipart_stream.erl
diff options
context:
space:
mode:
Diffstat (limited to 'test/http_SUITE_data/http_multipart_stream.erl')
-rw-r--r--test/http_SUITE_data/http_multipart_stream.erl12
1 files changed, 5 insertions, 7 deletions
diff --git a/test/http_SUITE_data/http_multipart_stream.erl b/test/http_SUITE_data/http_multipart_stream.erl
index bde7531..43d459a 100644
--- a/test/http_SUITE_data/http_multipart_stream.erl
+++ b/test/http_SUITE_data/http_multipart_stream.erl
@@ -1,19 +1,17 @@
%% Feel free to use, reuse and abuse the code in this file.
-module(http_multipart_stream).
--behaviour(cowboy_http_handler).
--export([init/3, handle/2, terminate/3]).
-init(_, Req, []) ->
- {ok, Req, undefined}.
+-export([init/2]).
+-export([handle/2]).
+
+init(Req, Opts) ->
+ {http, Req, Opts}.
handle(Req, State) ->
Req2 = multipart(Req),
{ok, cowboy_req:reply(200, Req2), State}.
-terminate(_, _, _) ->
- ok.
-
multipart(Req) ->
case cowboy_req:part(Req) of
{ok, [{<<"content-length">>, BinLength}], Req2} ->