aboutsummaryrefslogtreecommitdiffstats
path: root/test/handlers/input_crash_h.erl
blob: 668d0533355bb89eb98deb54a5497ea0e28e19a2 (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/3]).

init(_, Req, content_length) ->
	cowboy_error_h:ignore(cow_http_hd, number, 2),
	cowboy_req:parse_header(<<"content-length">>, Req).