Skip to content

Conversation

@siyuniu-ms
Copy link
Contributor

No description provided.

@siyuniu-ms siyuniu-ms requested a review from MSNev January 14, 2025 20:55
_handleMessage(event, details);
}
if (details.requestBody && details.requestBody.raw) {
let gzipped = isGzip(details.requestBody.raw[0].bytes as ArrayBuffer);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While its good to "validate" that it's really gzipped, we should be checking the Encoding header and only attempt this check if it was reported as encoded as gzipped.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

requestHeaders is only available under onBeforeSendHeaders func

@siyuniu-ms siyuniu-ms requested a review from a team as a code owner January 16, 2025 21:42
@siyuniu-ms siyuniu-ms merged commit 4c71823 into main Jan 17, 2025
7 checks passed
@siyuniu-ms siyuniu-ms deleted the siyu/compressCheckTool branch January 17, 2025 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants