CosmicMac / M5Spot

A Spotify Web API client for M5Stack
MIT License
48 stars 8 forks source link

Spotify API changed header name #2

Open manu144x opened 5 years ago

manu144x commented 5 years ago

Content-Length is now content-length for some reason.

Took a while to debug, but now finally works. Only changed for the now-playing endpoint though.

So I changed line 731 the one in charge of checking for the content length to account for both versions of the header name:

} else if (startsWith(buff, "Content-Length:") || startsWith(buff, "content-length:")) {

CosmicMac commented 5 years ago

Good to know, I'll make the changes ASAP. Thanks!