Skip to content

Commit 2964e95

Browse files
authored
Set the right content type when sharing report (#129)
* Set the right content type * Add a mention about #129
1 parent 5efd555 commit 2964e95

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## main [(unreleased)](https://github.com/fastruby/skunk/compare/v0.5.4...HEAD)
99

10+
* [BUGFIX: Set the right content type in the share HTTP request](https://github.com/fastruby/skunk/pull/129)
1011
* [REFACTOR: Centralize Skunk analysis into RubyCritic module](https://github.com/fastruby/skunk/pull/127)
1112
* [FEATURE: Add Skunk HTML Report](https://github.com/fastruby/skunk/pull/123)
1213
* [FEATURE: Add Skunk::Config class](https://github.com/fastruby/skunk/pull/123)

lib/skunk/commands/status_sharer.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ def payload
8989
def post_payload
9090
req = Net::HTTP::Post.new(url)
9191
req.body = payload
92+
req.content_type = "application/json"
9293

9394
http = Net::HTTP.new(url.hostname, url.port)
9495
if url.scheme == "https"

0 commit comments

Comments
 (0)