Skip to content

Commit

Permalink
Merge pull request #735 from frsechet/fs/fix/websockets-url
Browse files Browse the repository at this point in the history
fix: missing base in URL() constructor
  • Loading branch information
dnalborczyk authored Jul 8, 2019
2 parents 23183a7 + 6ccd931 commit 181edbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ApiGatewayWebSocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ module.exports = class ApiGatewayWebSocket {
only: true,
initially: false,
connect: ({ ws, req }) => {
const { searchParams } = new URL(req.url);
const { searchParams } = new URL(req.url, `ws://${req.headers.host}`);
const queryStringParameters = parseQueryStringParameters(
searchParams,
);
Expand Down

0 comments on commit 181edbb

Please sign in to comment.