1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 17:59:55 +02:00
This commit is contained in:
Daniel Neto 2024-04-05 10:25:36 -03:00
parent 0f25c6820f
commit 5fd3017d6a

View file

@ -8,7 +8,7 @@ if (!empty($global['stopHeadRequests'])) {
if ($_SERVER['REQUEST_METHOD'] === 'HEAD') { if ($_SERVER['REQUEST_METHOD'] === 'HEAD') {
// Optionally, you can send a specific status code or header before exiting // Optionally, you can send a specific status code or header before exiting
http_response_code(200); // Set response code if needed http_response_code(200); // Set response code if needed
_error_log('stopIfIsHeadRequest '.$_SERVER['HTTP_USER_AGENT']); error_log('stopIfIsHeadRequest '.$_SERVER['HTTP_USER_AGENT']);
die(); die();
} }
} }