diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | lib/net/http.rb | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Thu Nov 21 20:56:35 2002 Minero Aoki <aamine@loveruby.net> + + * lib/net/http.rb: should not overwrite Host: header. + Tue Nov 19 05:16:23 2002 Akinori MUSHA <knu@iDaemons.org> * instruby.rb: Do not install various working files under bin/. diff --git a/lib/net/http.rb b/lib/net/http.rb index 2760fef348..15deac2994 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -690,7 +690,7 @@ module Net if not req.body_exist? or @seems_1_0_server then req['connection'] = 'close' end - req['host'] = addr_port() + req['host'] ||= addr_port() end def end_transport( req, res ) |