mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-15 12:40:25 +00:00
11 lines
258 B
Erlang
11 lines
258 B
Erlang
![]() |
%% 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).
|