From 319daf54e85dde9fca824f1acf7a281ad591bd84 Mon Sep 17 00:00:00 2001 From: Jameson Nash Date: Mon, 16 Nov 2020 20:51:04 -0500 Subject: [PATCH] Coveralls: fix error reporting printing Previously, this would print an html page, now it will print the error message Fixes #276 --- src/codecovio.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/codecovio.jl b/src/codecovio.jl index 4b18986..9ba7d9a 100644 --- a/src/codecovio.jl +++ b/src/codecovio.jl @@ -234,7 +234,8 @@ module Codecov verbose && @debug "Codecov.io API URL:\n" * mask_token(uri_str) if !dry_run - heads = Dict("Content-Type" => "application/json") + heads = Dict("Content-Type" => "application/json", + "Accept" => "application/json") data = to_json(fcs) req = HTTP.post(uri_str; body = JSON.json(data), headers = heads) @debug "Result of submission:" * String(req)