[前][次][番号順一覧][スレッド一覧]

ruby-changes:30346

From: nobu <ko1@a...>
Date: Tue, 6 Aug 2013 21:38:59 +0900 (JST)
Subject: [ruby-changes:30346] nobu:r42403 (trunk): net/http/header.rb: remove a hack

nobu	2013-08-06 21:38:51 +0900 (Tue, 06 Aug 2013)

  New Revision: 42403

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42403

  Log:
    net/http/header.rb: remove a hack
    
    * lib/net/http/header.rb (Net::HTTPHeader#set_range): remove a hack
      for the bug fixed at [Bug #8739].

  Modified files:
    trunk/lib/net/http/header.rb
_______________________________________________
ruby-cvs mailing list
ruby-cvs@r...
http://lists.ruby-lang.org/cgi-bin/mailman/listinfo/ruby-cvs
Index: lib/net/http/header.rb
===================================================================
--- lib/net/http/header.rb	(revision 42402)
+++ lib/net/http/header.rb	(revision 42403)
@@ -238,7 +238,6 @@ module Net::HTTPHeader https://github.com/ruby/ruby/blob/trunk/lib/net/http/header.rb#L238
     when Range
       first = r.first
       last = r.last
-      last -= 1 if r.exclude_end?
       if last == -1
         rangestr = (first > 0 ? "#{first}-" : "-#{-first}")
       else

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]