input_crash_h.erl 255 B

12345678910
  1. %% This module crashes on request input data
  2. %% depending on the given option.
  3. -module(input_crash_h).
  4. -export([init/2]).
  5. init(Req, content_length) ->
  6. cowboy_error_h:ignore(cow_http_hd, number, 2),
  7. cowboy_req:parse_header(<<"content-length">>, Req).