Skip to content

Commit

Permalink
[INS-1800] Remove value validity check in the WebSocket headers (#5154)
Browse files Browse the repository at this point in the history
* remove valid value check in the headers

* add header name filtering
  • Loading branch information
marckong authored Sep 9, 2022
1 parent 0bdbd1d commit 03c4374
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/insomnia/src/main/network/websocket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,8 @@ const createWebSocketConnection = async (
}

const lowerCasedEnabledHeaders = headers
.filter(({ value, disabled }) => !!value && !disabled)
.filter(({ name, disabled }) => Boolean(name) && !disabled)
.reduce(reduceArrayToLowerCaseKeyedDictionary, {});

const settings = await models.settings.getOrCreate();
const start = performance.now();

Expand Down

0 comments on commit 03c4374

Please sign in to comment.