input_crash_h.erl 264 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. ct_helper_error_h:ignore(erlang, binary_to_integer, 1),
  7. cowboy_req:parse_header(<<"content-length">>, Req).