@sveltejs/kit 1.0.0-next.258 → 1.0.0-next.259

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1555,9 +1555,15 @@ async function load_node({
1555
1555
 
1556
1556
  // merge headers from request
1557
1557
  for (const [key, value] of event.request.headers) {
1558
- if (opts.headers.has(key)) continue;
1559
- if (key === 'cookie' || key === 'authorization' || key === 'if-none-match') continue;
1560
- opts.headers.set(key, value);
1558
+ if (
1559
+ key !== 'authorization' &&
1560
+ key !== 'cookie' &&
1561
+ key !== 'host' &&
1562
+ key !== 'if-none-match' &&
1563
+ !opts.headers.has(key)
1564
+ ) {
1565
+ opts.headers.set(key, value);
1566
+ }
1561
1567
  }
1562
1568
 
1563
1569
  opts.headers.set('referer', event.url.href);
package/dist/cli.js CHANGED
@@ -995,7 +995,7 @@ async function launch(port, https) {
995
995
  exec(`${cmd} ${https ? 'https' : 'http'}://localhost:${port}`);
996
996
  }
997
997
 
998
- const prog = sade('svelte-kit').version('1.0.0-next.258');
998
+ const prog = sade('svelte-kit').version('1.0.0-next.259');
999
999
 
1000
1000
  prog
1001
1001
  .command('dev')
@@ -1153,7 +1153,7 @@ async function check_port(port) {
1153
1153
  function welcome({ port, host, https, open, loose, allow, cwd }) {
1154
1154
  if (open) launch(port, https);
1155
1155
 
1156
- console.log($.bold().cyan(`\n SvelteKit v${'1.0.0-next.258'}\n`));
1156
+ console.log($.bold().cyan(`\n SvelteKit v${'1.0.0-next.259'}\n`));
1157
1157
 
1158
1158
  const protocol = https ? 'https:' : 'http:';
1159
1159
  const exposed = typeof host !== 'undefined' && host !== 'localhost' && host !== '127.0.0.1';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sveltejs/kit",
3
- "version": "1.0.0-next.258",
3
+ "version": "1.0.0-next.259",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/sveltejs/kit",