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

fix(core): Handling content encoding correctly #3907

Merged
merged 2 commits into from
Jan 4, 2024
Merged

Conversation

Xuanwo
Copy link
Member

@Xuanwo Xuanwo commented Jan 4, 2024

I tested locally with gdrice. We should extend the wasm tests to all available services in the future.

Signed-off-by: Xuanwo <github@xuanwo.io>
Signed-off-by: Xuanwo <github@xuanwo.io>
@Xuanwo Xuanwo merged commit 46f247c into main Jan 4, 2024
232 of 234 checks passed
@Xuanwo Xuanwo deleted the fix-content-encoding branch January 4, 2024 07:16
let content_length = if is_head {
//
// - If the request method is HEAD, we will ignore content length.
// - If response contains content_encoding, we should omit it's content length.
Copy link
Member

Choose a reason for hiding this comment

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

I propose that update the comment to mention that this trick would only be available in WASM32

Copy link
Member Author

Choose a reason for hiding this comment

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

Welcome to submit a PR to improve it 💌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

no_gzip & gzip not supported for wasm target gdrive service can't work under wasm target
3 participants