jdecool/scaleway-runtimepublic Fork
⑂ c8fb53b
Commits
⬇ Clone ▾
git clone https://git.rickub.com/jdecool/scaleway-runtime.git
git clone ssh://git@rickub.com/jdecool/scaleway-runtime.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Download ZIP

fix(emulator): keep php -S from adding a charset to text responsesUnverified

Jérémy DECOOL committed 2026-11-22T11:45:23+01:00 Browse files
c8fb53b parent: 86f9b49
modified bin/scaleway-serve +1 -1
@@ -70,7 +70,7 @@ $startWarmProcess = static function () use ($handlerFile, $socket) {
7070
7171 $warmProcess = $startWarmProcess();
7272 $server = start(
73- [\PHP_BINARY, '-d', 'enable_post_data_reading=0', '-d', 'expose_php=0', '-d', 'default_mimetype=', '-S', $address, __DIR__.'/../resources/emulator/router.php'],
73+ [\PHP_BINARY, '-d', 'enable_post_data_reading=0', '-d', 'expose_php=0', '-d', 'default_mimetype=', '-d', 'default_charset=', '-S', $address, __DIR__.'/../resources/emulator/router.php'],
7474 ['SCALEWAY_EMULATOR_AUTOLOAD' => $autoload, 'SCALEWAY_EMULATOR_SOCKET' => $socket] + getenv(),
7575 );
7676 // Children outlive a killed parent, so a SIGTERM would leave the port busy and the Warm Process running.
@@ -70,7 +70,7 @@ $startWarmProcess = static function () use ($handlerFile, $socket) {
70 70
71 $warmProcess = $startWarmProcess();71 $warmProcess = $startWarmProcess();
72 $server = start(72 $server = start(
73- [\PHP_BINARY, '-d', 'enable_post_data_reading=0', '-d', 'expose_php=0', '-d', 'default_mimetype=', '-S', $address, __DIR__.'/../resources/emulator/router.php'],73+ [\PHP_BINARY, '-d', 'enable_post_data_reading=0', '-d', 'expose_php=0', '-d', 'default_mimetype=', '-d', 'default_charset=', '-S', $address, __DIR__.'/../resources/emulator/router.php'],
74 ['SCALEWAY_EMULATOR_AUTOLOAD' => $autoload, 'SCALEWAY_EMULATOR_SOCKET' => $socket] + getenv(),74 ['SCALEWAY_EMULATOR_AUTOLOAD' => $autoload, 'SCALEWAY_EMULATOR_SOCKET' => $socket] + getenv(),
75 );75 );
76 // Children outlive a killed parent, so a SIGTERM would leave the port busy and the Warm Process running.76 // Children outlive a killed parent, so a SIGTERM would leave the port busy and the Warm Process running.