Skip to content

Commit

Permalink
Fix: use the response handler (#1519)
Browse files Browse the repository at this point in the history
  • Loading branch information
stramel authored Nov 5, 2020
1 parent 376503e commit c0524a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions snowpack/src/commands/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1196,10 +1196,10 @@ export async function startDevServer(commandOptions: CommandOptions): Promise<Sn
responseHandler as Http2RequestListener,
);
} else if (credentials) {
return https.createServer(credentials, handleRequest);
return https.createServer(credentials, responseHandler as http.RequestListener);
}

return http.createServer(handleRequest);
return http.createServer(responseHandler as http.RequestListener);
};

const server = createServer(async (req, res) => {
Expand Down

1 comment on commit c0524a0

@vercel
Copy link

@vercel vercel bot commented on c0524a0 Nov 5, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.