From: Michal Date: 2004-11-27T09:38:58+09:00 Subject: BUG: small glitch in Net:HTTP when adding custom headers 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 $ -- # Michal Safranek, email: a=(("a".."z").to_a+["@","."]);p(("%b"%[0x645bbb83a6a496] ).scan(/...../).map{|x|a[Integer("0b"+x)]}.join.reverse)