Default to http for DDG bridge

Because some hosts do not support https.
This commit is contained in:
Sebastien SAUVAGE 2014-02-08 18:12:49 +01:00
parent 6b9074da2a
commit a9d6fd3e46

View file

@ -12,7 +12,7 @@ class DuckDuckGoBridge extends BridgeAbstract{
public function collectData(array $param){
$html = '';
$link = 'https://duckduckgo.com/html/?q='.$param[u].'+sort:date';
$link = 'http://duckduckgo.com/html/?q='.$param[u].'+sort:date';
$html = file_get_html($link) or $this->returnError('Could not request DuckDuckGo.', 404);