mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-25 02:41:25 +02:00
enable proxy usage for individual bridge
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
@@ -100,7 +100,7 @@ try{
|
||||
// whitelist control
|
||||
if(!Bridge::isWhitelisted($whitelist_selection, $bridge)) {
|
||||
throw new \HttpException('This bridge is not whitelisted', 401);
|
||||
die;
|
||||
die;
|
||||
}
|
||||
|
||||
$cache = Cache::create('FileCache');
|
||||
@@ -111,6 +111,10 @@ try{
|
||||
} else {
|
||||
$bridge->setCache($cache); // just add disable cache to your query to disable caching
|
||||
}
|
||||
if(isset($_REQUEST['_p'])){
|
||||
$bridge->useProxy=true;
|
||||
}
|
||||
$bridge->setDatas($_REQUEST);
|
||||
$bridge->loadMetadatas();
|
||||
$bridge->setDatas($_REQUEST);
|
||||
// Data transformation
|
||||
|
Reference in New Issue
Block a user