Description
Describe the bug
☑️ The following works using
- @sveltejs/kit 1.0.0-next.232
- @sveltejs/adapter-node 1.0.0-next.62
❌ But breaks with the error 400 Bad Request Invalid request body
on every route after updating to
- @sveltejs/kit 1.0.0-next.245
- @sveltejs/adapter-node 1.0.0-next.67
import { handler } from './build/handler.js';
import fs from 'fs';
import http2 from 'http2';
const port = 1337;
const server = http2.createSecureServer(
{
key: fs.readFileSync('./certs/privkey.pem'),
cert: fs.readFileSync('./certs/cert.pem'),
allowHTTP1: false,
},
handler
);
server.listen(port, () => {
console.log('🍱 Server running');
});
Reproduction
Repo with the bug in action can be found here: https://github.com/Cangit/http2bug
(Check the readme)
Logs
No response
System Info
System:
OS: macOS 12.1
CPU: (16) x64 Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
Memory: 10.60 GB / 32.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 17.4.0 - /usr/local/bin/node
Yarn: 1.22.15 - /usr/local/bin/yarn
npm: 8.3.1 - /usr/local/bin/npm
Browsers:
Firefox: 96.0.2
Safari: 15.2
npmPackages:
@sveltejs/adapter-node: 1.0.0-next.67 => 1.0.0-next.67
@sveltejs/kit: 1.0.0-next.245 => 1.0.0-next.245
svelte: ^3.46.3 => 3.46.3
Severity
blocking an upgrade
Additional Information
No response