You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The req.headers.host in the code below found in kit/packages/kit/src/core/dev/plugin.js has a value of undefined when the server is https, but it works fine when it's http.
vite.middlewares.use(async (req, res) => {
try {
if (!req.url || !req.method) throw new Error('Incomplete request');
const base = `${vite.config.server.https ? 'https' : 'http'}://${req.headers.host}`;
Reproduction
Create a new skeleton project and run the server using the --https flag:
HTTPS:
HTTP:
Logs
No response
System Info
System:
OS: Linux 5.16 Arch Linux
CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
Memory: 12.85 GB / 15.48 GB
Container: Yes
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 17.7.1 - /usr/bin/node
npm: 8.5.4 - /usr/bin/npm
npmPackages:
@sveltejs/adapter-auto: next => 1.0.0-next.31
@sveltejs/kit: next => 1.0.0-next.295
svelte: ^3.44.0 => 3.46.4
Severity
blocking an upgrade
Additional Information
This propagates down to the event.url var on handle.
The text was updated successfully, but these errors were encountered:
Describe the bug
The
req.headers.host
in the code below found inkit/packages/kit/src/core/dev/plugin.js
has a value of undefined when the server is https, but it works fine when it's http.Reproduction
Create a new skeleton project and run the server using the --https flag:


HTTPS:
HTTP:
Logs
No response
System Info
Severity
blocking an upgrade
Additional Information
This propagates down to the
event.url
var onhandle
.The text was updated successfully, but these errors were encountered: