* lib/net/http.rb (HTTPHeader#initialize): provide default User-Agent to fix 500 error on some corrupted HTTP servers. [ruby-core:13135]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
fc3b17968b
commit
fc8bd6d109
@ -1,3 +1,9 @@
|
||||
Mon Nov 5 01:02:56 2007 Minero Aoki <aamine@loveruby.net>
|
||||
|
||||
* lib/net/http.rb (HTTPHeader#initialize): provide default
|
||||
User-Agent to fix 500 error on some corrupted HTTP servers.
|
||||
[ruby-core:13135]
|
||||
|
||||
Mon Nov 5 00:24:24 2007 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* win32/Makefile.sub: vendor_ruby support.
|
||||
|
@ -1533,6 +1533,7 @@ module Net #:nodoc:
|
||||
@path = path
|
||||
initialize_http_header initheader
|
||||
self['Accept'] ||= '*/*'
|
||||
self['User-Agent'] ||= 'Ruby'
|
||||
@body = nil
|
||||
@body_stream = nil
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user