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(docs): Remove gzip encoding query param #1537

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

minkovich
Copy link
Contributor

Box will automatically use accept-encoding header

This fixes a bug where gzip encoding wasn't available in accept-encoding list

@minkovich minkovich requested a review from a team as a code owner October 18, 2024 17:49
@CLAassistant
Copy link

CLAassistant commented Oct 18, 2024

CLA assistant check
All committers have signed the CLA.

@jstoffan jstoffan changed the title Remove gzip encoding query param fix(docs): Remove gzip encoding query param Oct 18, 2024
jstoffan
jstoffan previously approved these changes Oct 18, 2024
Copy link
Collaborator

@jstoffan jstoffan left a comment

Choose a reason for hiding this comment

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

LGTM. I've updated the PR title, but you may need to update the commit message as well.

this.encoding = disableRange && disableStream ? ENCODING_TYPES.GZIP : undefined;

if (this.encoding) {
queryParams[QUERY_PARAM_ENCODING] = this.encoding;
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we can delete queryParams and remove the appendQueryParams call now, since it's a noop.

Box will automatically use accept-encoding header
This fixes a bug where gzip encoding wasn't available in accept-encoding list
Copy link
Collaborator

@jstoffan jstoffan left a comment

Choose a reason for hiding this comment

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

Thanks for submitting this change!

@jstoffan jstoffan merged commit a77524d into box:master Oct 18, 2024
3 checks passed
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