Skip to content

Commit 9cee0ab

Browse files
committed
remove incomplete request checks
1 parent 30691d2 commit 9cee0ab

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

packages/kit/src/vite/dev/index.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,6 @@ export async function dev(vite, vite_config, svelte_config) {
182182

183183
vite.middlewares.use(async (req, res, next) => {
184184
try {
185-
if (!req.url || !req.method) throw new Error('Incomplete request');
186-
187185
const base = `${vite.config.server.https ? 'https' : 'http'}://${
188186
req.headers[':authority'] || req.headers.host
189187
}`;
@@ -221,8 +219,6 @@ export async function dev(vite, vite_config, svelte_config) {
221219

222220
vite.middlewares.use(async (req, res) => {
223221
try {
224-
if (!req.url || !req.method) throw new Error('Incomplete request');
225-
226222
const base = `${vite.config.server.https ? 'https' : 'http'}://${
227223
req.headers[':authority'] || req.headers.host
228224
}`;

0 commit comments

Comments
 (0)