Tied up code & removed placeholders (#1)

This commit is contained in:
2019-02-19 15:31:02 +01:00
committed by Gitea
parent 42505774c1
commit ec7e4b28ec
3 changed files with 40 additions and 29 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;