1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[rubygems/rubygems] Make compact_index_api_missing server more strict

The compact index should not request any marshaled gemspecs whatsoever.

https://github.com/rubygems/rubygems/commit/6dbd44d0c0
This commit is contained in:
David Rodríguez 2022-08-08 23:48:02 +02:00 committed by Hiroshi SHIBATA
parent 29c443fedc
commit a9509068db
Notes: git 2022-08-23 10:46:25 +09:00

View file

@ -6,12 +6,7 @@ Artifice.deactivate
class CompactIndexApiMissing < CompactIndexAPI
get "/fetch/actual/gem/:id" do
warn params[:id]
if params[:id] == "rack-1.0.gemspec.rz"
halt 404
else
File.binread("#{gem_repo2}/quick/Marshal.4.8/#{params[:id]}")
end
halt 404
end
end