aboutsummaryrefslogtreecommitdiffstats
path: root/test/handlers/input_crash_h.erl
blob: 8cb7cbca35f18c3aa99e3aaae051ac9df7629ff3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
%% This module crashes on request input data
%% depending on the given option.

-module(input_crash_h).

-export([init/2]).

init(Req, content_length) ->
	ct_helper_error_h:ignore(erlang, binary_to_integer, 1),
	cowboy_req:parse_header(<<"content-length">>, Req).