Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Error out on redirects.

This way a silent failure won't occur for redirects without a body.
  • Loading branch information...
commit c553ce6257088b2d79597b0185f19f8dfde46dcf 1 parent b515d53
@as016194 as016194 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/geminabox_client.rb
View
2  lib/geminabox_client.rb
@@ -28,7 +28,7 @@ def url_for(path)
def push(gemfile)
response = http_client.post(url_for(:upload), {'file' => File.open(gemfile, "rb")}, {'Accept' => 'text/plain'})
- if response.status < 400
+ if response.status < 300
response.body
else
raise GeminaboxClient::Error, "Error (#{response.code} received)\n\n#{response.body}"
Please sign in to comment.
Something went wrong with that request. Please try again.