From ceee6bc5f5bf27cc868ad82c178f6a9a1a40acf2 Mon Sep 17 00:00:00 2001 From: Alex Arslan Date: Fri, 26 Feb 2021 14:00:50 -0800 Subject: [PATCH] Make Jamesonier thanks bud Co-authored-by: Jameson Nash --- src/codecovio.jl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/codecovio.jl b/src/codecovio.jl index aedabd9..2c170d8 100644 --- a/src/codecovio.jl +++ b/src/codecovio.jl @@ -227,7 +227,11 @@ module Codecov # Tell Codecov we have an upload for them response = HTTP.post(uri_str; headers=Dict("Accept" => "text/plain")) # Get the temporary URL to use for uploading to S3 - s3url = split(String(response.body), '\n')[2] + repr = String(response) + s3url = get(split(String(response.body), '\n'), 2, "") + repr = chomp(replace(repr, s3url => "")) + @debug "Result of submission:" * repr + startswith(s3url, "https://") || error("Invalid codecov response: $s3url") # Upload to S3 request = HTTP.put(s3url; body=json(to_json(fcs)), header=Dict("Content-Type" => "application/json",