[erlang-bugs] inets httpd bug
Vicky!
251712045@REDACTED
Mon Oct 14 12:01:08 CEST 2013
Dear Sir or Madam,
I found a bug as follow:
file: erl5.10.2\lib\inets-5.9.5\src\http_server\httpd_sup.erl
line: 150
==================
try file:consult(File) of
{ok, [PropList]} ->
httpd_conf:validate_properties(PropList)
catch
exit:_ ->
throw({error,
{could_not_consult_proplist_file, File}})
end
==================
question:
file:consult(File) may return {ok, [{port, 8888}, {server_name, "localhost"}]}, but {ok, [PropList]} cannot match it. so it will throw an error.
fix:
{ok, [PropList]} => {ok, PropList}
Thank you for reading.I hope Erlang will better and better.
Vicky Chen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20131014/e944a16d/attachment.htm>
More information about the erlang-bugs
mailing list