Comments added, along with tiny fixes

This commit is contained in:
djpbessems
2019-01-28 14:42:49 +01:00
parent 01bb3f33da
commit 47281ed7fc
2 changed files with 3 additions and 1 deletions

View File

@ -20,7 +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);
}
if (sizeof($proxyHeaders) == 0) {
if (sizeof($proxyHeaders) === 0) {
// Non-proxied request; this is senseless, go fetch!
header("HTTP/1.1 403 Forbidden");
exit;