mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 17:59:55 +02:00
Update
This commit is contained in:
parent
0f25c6820f
commit
5fd3017d6a
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ if (!empty($global['stopHeadRequests'])) {
|
|||
if ($_SERVER['REQUEST_METHOD'] === 'HEAD') {
|
||||
// Optionally, you can send a specific status code or header before exiting
|
||||
http_response_code(200); // Set response code if needed
|
||||
_error_log('stopIfIsHeadRequest '.$_SERVER['HTTP_USER_AGENT']);
|
||||
error_log('stopIfIsHeadRequest '.$_SERVER['HTTP_USER_AGENT']);
|
||||
die();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue