Skip to content

Commit

Permalink
Make Jamesonier
Browse files Browse the repository at this point in the history
thanks bud

Co-authored-by: Jameson Nash <[email protected]>
  • Loading branch information
2 people authored and DilumAluthge committed Jun 9, 2021
1 parent 6dd0be8 commit 55d4c5f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/codecovio.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 55d4c5f

Please sign in to comment.