JMPerez / spotify-web-api-js

A client-side JS wrapper for the Spotify Web API
https://jmperezperez.com/spotify-web-api-js/
MIT License
1.86k stars 260 forks source link

Send content type as application/json when sending json in body params - Fixes #175 #179

Closed JMPerez closed 4 years ago

JMPerez commented 4 years ago

Instead of patching multiple functions, set the proper content type for all requests when sending JSON in the body parameters.

coveralls commented 4 years ago

Coverage Status

Coverage increased (+0.007%) to 98.561% when pulling d7e9e79a9e2f490f46bc1338c499478ae4741113 on content-type-json into 1487329717fc12665bd9b983b71040609bdb4069 on master.