Skip to content

Commit

Permalink
Merge pull request #5 from nickshears/patch-1
Browse files Browse the repository at this point in the history
Specify content-type encoding explicitely to prevent warning, thanks @nickshears :) !
  • Loading branch information
dandelionmood committed Oct 19, 2014
2 parents 6d5ccb8 + 604d6b2 commit 36497a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Dandelionmood/LastFm/LastFm.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ private function _make_request( $method, $parameters = array(),
$browser = new Browser();
$response = $browser->post(
self::API_URL,
array(),
array("Content-type" => "Content-type: application/x-www-form-urlencoded"),
http_build_query( $parameters )
);
$json = json_decode( $response->getContent() );
Expand All @@ -163,4 +163,4 @@ private function _make_request( $method, $parameters = array(),

return $json;
}
}
}

0 comments on commit 36497a5

Please sign in to comment.