Skip to content

Commit 688ae2f

Browse files
committed
Add Content-Type header for vendor API requests
1 parent 708c585 commit 688ae2f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/models/proxy_collective.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ def self.create_by_website(url)
8080
req.url "/api/graphql/v2?personalToken=#{ENV['OPENCOLLECTIVE_TOKEN']}"
8181
req.headers['Authorization'] = "Bearer #{ENV['OPENCOLLECTIVE_TOKEN']}"
8282
req.body = payload
83+
req.headers['Content-Type'] = 'application/json'
8384
end
8485

8586
response_data = JSON.parse(response.body)

0 commit comments

Comments
 (0)