Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion packages/proxy/lib/http/response-middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,10 @@ const MaybeInjectServiceWorker: ResponseMiddleware = function () {
}

const GzipBody: ResponseMiddleware = async function () {
if (this.protocolManager && this.req.browserPreRequest?.requestId) {
// Only process streams through protocol manager if it's actually enabled
// Protocol manager is only enabled when Studio is active (setupProtocol() has been called)
// This prevents intercepting streams when Studio panel is not open
if (this.protocolManager?.isProtocolEnabled && this.req.browserPreRequest?.requestId) {
const preRequest = this.req.browserPreRequest
const requestId = getOriginalRequestId(preRequest.requestId)

Expand Down
Loading