/**
* Quick static function to GET a URL
*/
- public static function quickGet($url, $accept='text/html,application/xhtml+xml')
+ public static function quickGet($url, $accept=null)
{
$client = new HTTPClient();
- $client->setHeader('Accept', $accept);
+ if (!is_null($accept)) {
+ $client->setHeader('Accept', $accept);
+ }
$response = $client->get($url);
if (!$response->isOk()) {
// TRANS: Exception. %s is a profile URL.