From a6ad0412c83124bdf9f358178aa6e1b26036047f Mon Sep 17 00:00:00 2001 From: Ernesto Tagwerker Date: Thu, 13 Nov 2025 16:03:06 -0500 Subject: [PATCH 1/2] Set the right content type --- lib/skunk/commands/status_sharer.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/skunk/commands/status_sharer.rb b/lib/skunk/commands/status_sharer.rb index af23d49..bc38415 100644 --- a/lib/skunk/commands/status_sharer.rb +++ b/lib/skunk/commands/status_sharer.rb @@ -89,6 +89,7 @@ def payload def post_payload req = Net::HTTP::Post.new(url) req.body = payload + req.content_type = "application/json" http = Net::HTTP.new(url.hostname, url.port) if url.scheme == "https" From 5c3884880e9240481d8c6466a7e20df921db44c6 Mon Sep 17 00:00:00 2001 From: Ernesto Tagwerker Date: Thu, 13 Nov 2025 16:05:20 -0500 Subject: [PATCH 2/2] Add a mention about #129 --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e6bc057..3cb8fcb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## main [(unreleased)](https://github.com/fastruby/skunk/compare/v0.5.4...HEAD) +* [BUGFIX: Set the right content type in the share HTTP request](https://github.com/fastruby/skunk/pull/129) * [REFACTOR: Centralize Skunk analysis into RubyCritic module](https://github.com/fastruby/skunk/pull/127) * [FEATURE: Add Skunk HTML Report](https://github.com/fastruby/skunk/pull/123) * [FEATURE: Add Skunk::Config class](https://github.com/fastruby/skunk/pull/123)