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:
parent
29c443fedc
commit
a9509068db
Notes:
git
2022-08-23 10:46:25 +09:00
1 changed files with 1 additions and 6 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue