Permalink
Browse files

413 message, consistent halt style

  • Loading branch information...
1 parent c7262c7 commit 59425a8fc2e5a8f655c505e2cb3b7a477ebee49b @indirect indirect committed Feb 13, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/bundler_api/web.rb
View
@@ -37,12 +37,12 @@ def initialize(conn = nil, write_conn = nil)
end
def gems
- halt(200) if params[:gems].nil?
+ halt 200 if params[:gems].nil?
gems = params[:gems].split(',')
- if gems.size >= 100
+ if gems.size >= 150
puts "too many gems: #{gems.size}"
- halt(413)
+ halt 413, "Faster to download the full index"
end
gems
end

0 comments on commit 59425a8

Please sign in to comment.