Permalink
Browse files

Don't override by default.

Default to server configured behavior when override not set. Previously,
override unaware clients would always override.
  • Loading branch information...
1 parent 6e9175f commit 4a8b322d52f202a9baf88dab344cc84ada2a5cf2 @tomlea committed Apr 9, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/geminabox.rb
View
2 lib/geminabox.rb
@@ -105,7 +105,7 @@ def fixup_bundler_rubygems!
def handle_incoming_gem(gem)
prepare_data_folders
error_response(400, "Cannot process gem") unless gem.valid?
- handle_replacement(gem) if params[:overwrite] == "false"
+ handle_replacement(gem) unless params[:overwrite] == "true"
write_and_index(gem)
if api_request?

0 comments on commit 4a8b322

Please sign in to comment.