Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[main][debug tool] enable check compressed data #2465

Merged
merged 10 commits into from
Jan 17, 2025
Merged

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.

2 participants