[erlang-bugs] inets httpd server minor bug
Dmitriy Kargapolov
dmitriy.kargapolov@REDACTED
Mon Dec 3 18:24:18 CET 2012
There is missing message/3 header in the httpd_util.erl, which should
handle 417 error code.
...
message(416,ReasonPhrase,_) ->
html_encode(ReasonPhrase);
message(500,_,ConfigDB) ->
...
This code generated by handle_expect/2 in httpd_request_handler.erl
(lines 540-541):
...
{break, Value} ->
httpd_response:send_status(ModData, 417,
"Unexpected expect value"),
...
This results in server crash when invalid Expect: header received.
More information about the erlang-bugs
mailing list