mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-03-14 20:21:14 +03:00
fix: don't bork upstream with http status code -1 (#2690)
This commit is contained in:
parent
641e2eedf5
commit
b2f1d051fc
1 changed files with 4 additions and 1 deletions
|
@ -28,6 +28,9 @@ try {
|
|||
}
|
||||
} catch(\Exception $e) {
|
||||
error_log($e);
|
||||
header('Content-Type: text/plain', true, $e->getCode());
|
||||
$code = $e->getCode();
|
||||
if ($code !== -1) {
|
||||
header('Content-Type: text/plain', true, $code);
|
||||
}
|
||||
die($e->getMessage());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue