aboutsummaryrefslogblamecommitdiffstats
path: root/test/handlers/input_crash_h.erl
blob: e941cca88daccaa2888d21cf64bcc6870f345bf8 (plain) (tree)
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) ->
	cowboy_error_h:ignore(cow_http_hd, number, 2),
	cowboy_req:parse_header(<<"content-length">>, Req).