Re-enabled '403 Forbidden' result for non-proxied requests

This commit is contained in:
djpbessems 2019-01-28 13:50:00 +01:00
parent ac5f509d4e
commit 01bb3f33da

View File

@ -20,8 +20,7 @@
file_put_contents('../requestHeaders.log', (new DateTime())->format('Y-m-d\TH:i:s.u') . ' --- ' . (json_encode($proxyHeaders, JSON_FORCE_OBJECT)) . PHP_EOL, FILE_APPEND); file_put_contents('../requestHeaders.log', (new DateTime())->format('Y-m-d\TH:i:s.u') . ' --- ' . (json_encode($proxyHeaders, JSON_FORCE_OBJECT)) . PHP_EOL, FILE_APPEND);
} }
# if (sizeof($proxyHeaders) == 0) { if (sizeof($proxyHeaders) == 0) {
if (False) {
// Non-proxied request; this is senseless, go fetch! // Non-proxied request; this is senseless, go fetch!
header("HTTP/1.1 403 Forbidden"); header("HTTP/1.1 403 Forbidden");
exit; exit;