mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-13 07:24:48 +02:00
enable proxy usage for individual bridge
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
parent
b43e8ef689
commit
3dd63ab6fd
3 changed files with 24 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue