Skip to content

Revert the rollback of #2957 #2982

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

Merged
merged 2 commits into from
Jan 21, 2022
Merged

Revert the rollback of #2957 #2982

merged 2 commits into from
Jan 21, 2022

Conversation

millems
Copy link
Contributor

@millems millems commented Jan 21, 2022

#2957 was rolled back because it did not account for HEAD responses, and broke for S3 integration tests. This fixes that issue: Do not validate content-length for 304 and HEAD responses.

This PR is separated into two different commits so it's easier to ignore the previously-reviewed code and the fixes to that code.

@millems millems requested a review from a team as a code owner January 21, 2022 20:04
@millems millems enabled auto-merge (squash) January 21, 2022 20:08
return false;
}

return false;
Copy link
Contributor

Choose a reason for hiding this comment

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

Should return true -- can we add a test case?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hah, we actually have one. It would help if I ran it....

@millems millems force-pushed the millem/fix-s3-head-object branch from 445d853 to 2bebabe Compare January 21, 2022 20:22
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 3 Code Smells

89.3% 89.3% Coverage
0.0% 0.0% Duplication

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