cypht
cypht copied to clipboard
Undefined index warnings
🐛 Bugreport
I am seeing a bunch of warnings about server variables.
cypht-1 | NOTICE: PHP message: PHP Notice: Undefined index: HTTP_ORIGIN in /usr/local/share/cypht/lib/framework.php on line 213
cypht-1 | NOTICE: PHP message: PHP Notice: Undefined index: HTTP_REFERER in /usr/local/share/cypht/lib/framework.php on line 213
cypht-1 | NOTICE: PHP message: PHP Notice: Undefined index: HTTP_ACCEPT_LANGUAGE in /usr/local/share/cypht/lib/framework.php on line 213
cypht-1 | NOTICE: PHP message: PHP Notice: Undefined index: HTTP_ACCEPT_ENCODING in /usr/local/share/cypht/lib/framework.php on line 213
cypht-1 | NOTICE: PHP message: PHP Notice: Undefined index: HTTP_ACCEPT_CHARSET in /usr/local/share/cypht/lib/framework.php on line 213
cypht-1 | NOTICE: PHP message: PHP Notice: Undefined index: HTTPS in /usr/local/share/cypht/lib/framework.php on line 213
cypht-1 | NOTICE: PHP message: PHP Notice: Undefined index: HTTP_X_REQUESTED_WITH in /usr/local/share/cypht/lib/framework.php on line 213
cypht-1 | NOTICE: PHP message: PHP Notice: Undefined index: HTTP_X_FORWARDED_HOST in /usr/local/share/cypht/lib/framework.php on line 213
cypht-1 | 127.0.0.1 - 10/May/2024:18:57:07 +0000 "GET /index.php" 200
cypht-1 | 127.0.0.1 - - [10/May/2024:18:57:07 +0000] "GET / HTTP/1.1" 200 507898 "-" "curl/7.83.1"
cypht-1 | NOTICE: PHP message: PHP Notice: Undefined index: HTTP_REFERER in /usr/local/share/cypht/lib/framework.php on line 213
cypht-1 | NOTICE: PHP message: PHP Notice: Undefined index: HTTP_ACCEPT_CHARSET in /usr/local/share/cypht/lib/framework.php on line 213
cypht-1 | NOTICE: PHP message: PHP Notice: Undefined index: HTTPS in /usr/local/share/cypht/lib/framework.php on line 213
cypht-1 | NOTICE: PHP message: PHP Notice: Undefined index: HTTP_X_FORWARDED_HOST in /usr/local/share/cypht/lib/framework.php on line 213
cypht-1 | 127.0.0.1 - 10/May/2024:18:57:31 +0000 "POST /index.php" 200
@jacob-js perhaps related to https://github.com/cypht-org/cypht/commit/40f45b57949402ed78ebe451600594faad1e662e
Steps to reproduce
- check out the docker branch here: https://github.com/cypht-org/cypht/pull/1001
- make docker-up
- visit http://localhost
- see warnings in console