Permalink
Browse files

Switch to 413 Forbidden response

  • Loading branch information...
lmarburger committed Feb 12, 2013
1 parent 020c4f6 commit c7262c70cfc489919746716cb07a8898f5446ec3
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/bundler_api/web.rb
  2. +1 −1 spec/web_spec.rb
View
@@ -42,7 +42,7 @@ def gems
gems = params[:gems].split(',')
if gems.size >= 100
puts "too many gems: #{gems.size}"
- halt(503)
+ halt(413)
end
gems
end
View
@@ -111,7 +111,7 @@ def app
gems = (1..100).map {|i| "rack#{i}" }.join(',')
get "#{request}?gems=#{gems}"
- expect(last_response.status).to eq(503)
+ expect(last_response.status).to eq(413)
end
end
end

0 comments on commit c7262c7

Please sign in to comment.