From ff5eeaef1bf6f60491ed1d0896f2c5682a91b436 Mon Sep 17 00:00:00 2001 From: Ariel Juodziukynas Date: Wed, 18 Oct 2023 16:44:55 -0300 Subject: [PATCH] Use a json content type to submit the report --- lib/benchmark/ips/share.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/benchmark/ips/share.rb b/lib/benchmark/ips/share.rb index e296ab9..a1c2641 100644 --- a/lib/benchmark/ips/share.rb +++ b/lib/benchmark/ips/share.rb @@ -15,7 +15,7 @@ def share base = (ENV['SHARE_URL'] || DEFAULT_URL) url = URI(File.join(base, "reports")) - req = Net::HTTP::Post.new(url) + req = Net::HTTP::Post.new(url, initheader = {'Content-Type' =>'application/json'}) data = { "entries" => @report.data,