Skip to content

Commit e71446c

Browse files
committed
bug fix
1 parent 0f78ca2 commit e71446c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/mws/src/RequestState.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ export class StateObject<
5555
this.sendAdmin = (status: number, response: ServerToReactAdmin) =>
5656
router.sendAdmin(this, status, response);
5757

58-
this.compressor.enabled = router.config.enableGzip;
58+
if (this.compressor)
59+
this.compressor.enabled = router.config.enableGzip;
5960
}
6061

6162
okUser() {

0 commit comments

Comments
 (0)