<div>
Dear Sir or Madam,</div>
<div><br></div>
<div>
I found a bug as follow:
</div>
<div>
<br>
</div>
<div>
<b>
file:
</b>
<span style="line-height: 1.5;">
erl5.10.2\lib\inets-5.9.5\src\http_server\httpd_sup.erl
</span>
</div>
<div>
<b>
line:
</b>
150
</div>
<div>
==================
</div>
<div>
<div>
try file:consult(File) of
</div>
<div>
{ok, [PropList]} -></div><div><span style="line-height: 1.5;"> httpd_conf:validate_properties(PropList)</span></div>
<div>
catch
</div>
<div>
exit:_ -></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>throw({error, </div><div><span class="Apple-tab-span" style="white-space:pre"> </span>
{could_not_consult_proplist_file, File}})
</div>
<div>
end
</div>
</div>
<div>
==================
</div>
<div>
<b>
question:
</b>
</div>
<div>
file:consult(File) may return {ok, [{port, 8888}, {server_name, "localhost"}]},
<span style="line-height: 1.5;">
but
</span>
{ok, [PropList]} cannot match it. <span style="line-height: 1.5;">so it will throw an error.</span></div>
<div>
<b>
fix:
</b>
</div>
<div>
{ok, [PropList]} =>
<span style="line-height: 1.5;">
{ok, PropList}
</span>
</div>
<div>
<span style="line-height: 1.5;">
<br>
</span>
</div>
<div><span style="line-height: 1.5;">T</span>hank you for reading.I hope Erlang will better and better.</div><div><br></div><div>Vicky Chen</div>
<div>
<div style="font-size:14px;font-family:Verdana;color:#000;">
</div>
</div>