-
Notifications
You must be signed in to change notification settings - Fork 242
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
Conversation
This reverts commit 40acc18.
…/ApplicationInsights-JS into siyu/compressCheckTool
tools/chrome-debug-extension/src/dataSources/defaultDataSource.ts
Outdated
Show resolved
Hide resolved
_handleMessage(event, details); | ||
} | ||
if (details.requestBody && details.requestBody.raw) { | ||
let gzipped = isGzip(details.requestBody.raw[0].bytes as ArrayBuffer); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
No description provided.