Skip to content

Commit

Permalink
Fix websocket rejection header mirroring
Browse files Browse the repository at this point in the history
  • Loading branch information
pimterry committed Jun 17, 2022
1 parent bfa31fd commit 0d586c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rules/websockets/websocket-handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ const rawResponse = (
headers: RawHeaders = []
) =>
`HTTP/1.1 ${statusCode} ${statusMessage}\r\n` +
_.map(headers, (value, key) =>
_.map(headers, ([key, value]) =>
`${key}: ${value}`
).join('\r\n') +
'\r\n\r\n';
Expand Down

0 comments on commit 0d586c5

Please sign in to comment.