Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #61 from as016194/master

Error out on redirects.

Sane/Valid redirects will be followed by http_client anyway.
  • Loading branch information...
commit a079123d1bc20de2c071ff126501da404b630e42 2 parents b515d53 + c553ce6
Tom Lea authored April 05, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  lib/geminabox_client.rb
2  lib/geminabox_client.rb
@@ -28,7 +28,7 @@ def url_for(path)
28 28
   def push(gemfile)
29 29
     response = http_client.post(url_for(:upload), {'file' => File.open(gemfile, "rb")}, {'Accept' => 'text/plain'})
30 30
 
31  
-    if response.status < 400
  31
+    if response.status < 300
32 32
       response.body
33 33
     else
34 34
       raise GeminaboxClient::Error, "Error (#{response.code} received)\n\n#{response.body}"

0 notes on commit a079123

Please sign in to comment.
Something went wrong with that request. Please try again.