What happened?
This behavior does not occur when using a standard Nginx + PHP-FPM setup—redirects work regardless of a space after the colon.
I notice this don't work.:
header("Location:".$_SERVER['REQUEST_URI']);
exit;
But this work:
header("Location: ".$_SERVER['REQUEST_URI']);
exit;
Expected:
Redirect honored regardless of space (RFC 7230 allows optional whitespace after “:”).
Build Type
Docker (Debian Bookworm)
Worker Mode
No
Operating System
GNU/Linux
CPU Architecture
x86_64
PHP configuration
Relevant log output