[bug]: Missing `Sec-WebSocket-Protocol` header in websocket request when App reopend
mrchi opened this issue · comments
Is there an existing issue for this?
- I have searched the existing issues
Current behavior
I set the websocket's protocols when I last closed the app.
However, when I closed the app and re-opened it, the set protocols were still there, but missing in websocket connection request.
![image](https://private-user-images.githubusercontent.com/16170578/313994467-2972c8a5-6bf6-4426-9d5e-ae380c4a142d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA0NDcyNDMsIm5iZiI6MTcyMDQ0Njk0MywicGF0aCI6Ii8xNjE3MDU3OC8zMTM5OTQ0NjctMjk3MmM4YTUtNmJmNi00NDI2LTlkNWUtYWUzODBjNGExNDJkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA4VDEzNTU0M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTVjMTkyNmI5NjE3YzQ0NzlhYmYyYTM4NzY4YjM5MGFmZjMyYjQyMmQwNWQyMTgxYTgwY2ZmMjQzN2M1NDI3ZTkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.uwL_kJ7PLXSJwVZ2ZTgtHjfp-PV8NU1RhWvsPaiafEs)
I'm using macOS App of hoppscotch, version 23.12.6-1, installed by homebrew.
Steps to reproduce
- Set websocket protocol
json
and turn on it. - Close App.
- Reopen App, click connect button;
Environment
Release
Version
Local