Skip to content
Snippets Groups Projects

Use http read total timeout by default (logging errors rather than raising)

Merged Andy Schoenen requested to merge 334930_use-http-total-timeout-by-default into master
4 files
+ 4
4
Compare changes
  • Side-by-side
  • Inline
Files
4
  • 7f435006
    Fix usage of response.to_s · 7f435006
    Andy Schoenen authored
    When using a block with HTTParty, response#to_s returns
    Net::ReadAdapter instead of the body. Gitlab::HTTP by default
    always uses a block to make read total timeout work.
@@ -17,7 +17,7 @@ def execute_with_manifest
file = Tempfile.new
begin
file.write(response)
file.write(response.body)
file.flush
yield(success(file: file, digest: response.headers['docker-content-digest'], content_type: response.headers['content-type']))
Loading