[erlang-bugs] Bug in http client (inets 5.0.13)

Paul Guyot pguyot@REDACTED
Fri May 22 17:29:01 CEST 2009


Hello,

There seems to be a bug in http.erl, in function http_options/2, line  
368.

http_options([{version, Val} | Settings], Acc)
   when is_atom(Val)->    						<====== here
     http_options(Settings, Acc#http_options{version = Val});

 From the documentation, the version is supposed to be a string, not  
an atom (and passing an atom crashes later).
I guess line 368 should just be changed to

   when is_list(Val)->

Regards,

Paul




More information about the erlang-bugs mailing list