diff options
Diffstat (limited to 'spec/bundler/support/artifice/endpoint_mirror_source.rb')
-rw-r--r-- | spec/bundler/support/artifice/endpoint_mirror_source.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/bundler/support/artifice/endpoint_mirror_source.rb b/spec/bundler/support/artifice/endpoint_mirror_source.rb index 318866e420..788a9027f3 100644 --- a/spec/bundler/support/artifice/endpoint_mirror_source.rb +++ b/spec/bundler/support/artifice/endpoint_mirror_source.rb @@ -5,7 +5,7 @@ require_relative "endpoint" class EndpointMirrorSource < Endpoint get "/gems/:id" do if request.env["HTTP_X_GEMFILE_SOURCE"] == "https://server.example.org/" - File.read("#{gem_repo1}/gems/#{params[:id]}") + File.binread("#{gem_repo1}/gems/#{params[:id]}") else halt 500 end |