Net/http: path.empty? was removed when path is nil

e$B@.@%$G$9!#e(B

Net::HTTP e$B$G$9$,!"e(Bpath e$B$,e(B nil e$B$N;~$Ke(B ArgumentError
e$B$rEj$2$kA0$Ke(B
nil.empty? e$B$G$3$1$^$9!#e(B

Index: lib/net/http.rb

— lib/net/http.rb (revision 12716)
+++ lib/net/http.rb (working copy)
@@ -1524,7 +1524,7 @@
@method = m
@request_has_body = reqbody
@response_has_body = resbody

  •  raise ArgumentError, "HTTP request path is empty" if path.empty?
    
  •  raise ArgumentError, "HTTP request path is empty" if 
    

path.to_s.empty?
@path = path
initialize_http_header initheader
self[‘Accept’] ||= ‘/

e$B@DLZ$G$9!#e(B

On 2007/07/06, at 19:02, NARUSE, Yui wrote:

e$B@.@%$G$9!#e(B

Net::HTTP e$B$G$9$,!"e(Bpath e$B$,e(B nil e$B$N;~$Ke(B
ArgumentError e$B$rEj$2$kA0$Ke(B
nil.empty? e$B$G$3$1$^$9!#e(B

  •  raise ArgumentError, "HTTP request path is empty" if  
    

path.empty?

  •  raise ArgumentError, "HTTP request path is empty" if  
    

path.to_s.empty?

e$BJs9p$"$j$,$H$&$4$6$$$^$9!#e(B
e$BBgJQCY$/$J$j$^$7$?$,!"BP=h$7$^$7$?!#e(B