M
Michal
Hi,
today I was toying a bit with Net:HTTP and found small glitch
in HTTPGenericRequest#initialize ... line 1106 reads:
@header[key] = v.strip
which fails on NoMethodError when value of added header is not
String (it was triggered by Fixnum in my case).
In my opinion it should be:
@header[key] = v.to_s.strip
Am I right?
Regards,
W.
PS:
wejn@ns ~ $ ruby --version
ruby 1.8.2 (2004-11-06) [i686-linux]
wejn@ns ~ $ fgrep '$Id' /usr/lib/ruby/1.8/net/http.rb
# $Id: http.rb,v 1.100.2.6 2004/04/18 23:20:32 nobu Exp $
today I was toying a bit with Net:HTTP and found small glitch
in HTTPGenericRequest#initialize ... line 1106 reads:
@header[key] = v.strip
which fails on NoMethodError when value of added header is not
String (it was triggered by Fixnum in my case).
In my opinion it should be:
@header[key] = v.to_s.strip
Am I right?
Regards,
W.
PS:
wejn@ns ~ $ ruby --version
ruby 1.8.2 (2004-11-06) [i686-linux]
wejn@ns ~ $ fgrep '$Id' /usr/lib/ruby/1.8/net/http.rb
# $Id: http.rb,v 1.100.2.6 2004/04/18 23:20:32 nobu Exp $