forked from blallo/rss-bridge
Fix Webfailbridge, change the user-agent used for the request.
This commit is contained in:
parent
8f3c56b184
commit
100f3cd56d
1 changed files with 2 additions and 0 deletions
|
@ -41,6 +41,8 @@ class WebfailBridge extends BridgeAbstract {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function collectData(){
|
public function collectData(){
|
||||||
|
|
||||||
|
ini_set('user_agent', 'Mozilla/5.0(X11; Linux x86_64; rv:30.0) Gecko/20121202 Firefox/30.0(rss-bridge/0.1; +https://github.com/RSS-Bridge/rss-bridge)');
|
||||||
$html = getSimpleHTMLDOM($this->getURI() . $this->getInput('type'));
|
$html = getSimpleHTMLDOM($this->getURI() . $this->getInput('type'));
|
||||||
|
|
||||||
$type = array_search($this->getInput('type'),
|
$type = array_search($this->getInput('type'),
|
||||||
|
|
Loading…
Reference in a new issue