Permalink
Browse files

Damn right... bitch

git-svn-id: http://rubygems.rubyforge.org/svn/trunk@1807 3d4018f9-ac1a-0410-99e9-8a154d859a19
  • Loading branch information...
1 parent 1aaf235 commit 288cdeb139bc4b3c842ba2cdb66563c7f0b3b35e zenspider committed Jun 24, 2008
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/rubygems/remote_fetcher.rb
@@ -288,6 +288,10 @@ def request(uri, request_class, last_modified = nil)
request.add_field 'Connection', 'keep-alive'
request.add_field 'Keep-Alive', '30'
+ if last_modified then
+ request.add_field 'If-Modified-Since', last_modified.rfc2822
+ end
+
connection = connection_for uri
retried = false

0 comments on commit 288cdeb

Please sign in to comment.