summaryrefslogtreecommitdiff
path: root/lib/rubygems/remote_fetcher.rb
diff options
context:
space:
mode:
-rw-r--r--lib/rubygems/remote_fetcher.rb3
1 files changed, 2 insertions, 1 deletions
@@ -78,6 +78,7 @@ class Gem::RemoteFetcher
# fetching the gem.
def initialize(proxy=nil, dns=nil, headers={})
require 'net/http'
require 'stringio'
require 'uri'
@@ -295,7 +296,7 @@ class Gem::RemoteFetcher
data = fetch_path(uri, mtime)
- if data == nil # indicates the server returned 304 Not Modified
return Gem.read_binary(path)
end