dandelionmood/php-lastfm

file_get_contents(): Content-type not specified assuming application/x-www-form-urlencoded

Closed this issue · 1 comments

Great library the only problem is it's producing this error and I can't figure out how to fix it.

"file_get_contents(): Content-type not specified assuming application/x-www-form-urlencoded in \vendor\kriswallsmith\buzz\lib\Buzz\Client\FileGetContents.php on line 62"

And comes from the LastFm->_makeRequest() method

6 0.2450 5429640 user_getTopArtists ( ) ..\controller_welcome.php:88
7 0.2450 5430024 Dandelionmood\LastFm\LastFm->__call( ) ..\controller_welcome.php:88
8 0.2450 5430440 Dandelionmood\LastFm\LastFm->_make_request( ) ..\LastFm.php:103
9 0.2670 5545768 Buzz\Browser->post( ) ..\LastFm.php:158
10 0.2730 5568152 Buzz\Browser->call( ) ..\Browser.php:36
11 0.2830 5697728 Buzz\Browser->send( ) ..\Browser.php:82
12 0.2870 5741384 Buzz\Client\FileGetContents->send( ) ..\Browser.php:130

Fixed in 36497a5, released in v0.4, thank you very much !