Skip to content

Commit 4b59ff1

Browse files
committed
fix: bug when one of interceptors does not specified
1 parent b54a495 commit 4b59ff1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/http-proxy/ws/interceptor.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ const getMsgHandler = ({interceptor, dataSender, binary}) => {
2323
return (data, flags) => {
2424
if (typeof interceptor !== 'function') {
2525
dataSender({data});
26+
return;
2627
}
2728

2829
const modifiedData = interceptor(data, flags);

0 commit comments

Comments
 (0)