aaronsky / appstoreconnect

Unofficial REST API client for Apple's App Store Connect API
MIT License
25 stars 15 forks source link

Add Content-Type to the request headers #1

Closed farrakha closed 5 years ago

farrakha commented 5 years ago

POST requests are failing due to missing Content-Type header. This is likely not an elegant solution –may want to refactor the api logic to allow passing in additional headers selectively– but it seems to resolve the issues I was seeing.

aaronsky commented 5 years ago

This should be resolved in 0.2.1, so I don't think this PR is necessary anymore. Closing unless there's an objection

Verduranti commented 5 years ago

I am seeing the same error in 0.2.1. Edited to add - it might not be the exact same error. Here's what I see: `Error: The provided Accept header is not supported for this request.

Requested: application/json

Allowed: application/a-gzip`