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

When a content-length 0 gzipped file head request made, do not error out #20

Merged
merged 2 commits into from
Mar 1, 2024
Merged

Conversation

jbaranski
Copy link

Fixes #19

The AWS SDK expects SdkHttpFullResponse.content to be null/not present in the case there is no content, but this http client violates that contract.

In my sample project, you can use the built in HTTP client instead of this one, and everything works fine.

… file, the request completes without exception - closes #19"
@jbaranski
Copy link
Author

@pjfanning do you mind taking a look and let me know if any feedback. Thanks.

@pjfanning
Copy link
Owner

@jbaranski I have a few things on so it might be a few days. Could you fix the scalafmt issues?

@matsluni would you have time to check? Presumably if this is an issue, it also exists in your Akka focused lib.

@jbaranski
Copy link
Author

@pjfanning, I fixed the formatting issues so all your checks passed now, thanks!

@jbaranski jbaranski changed the title When content-length 0 gzipped file head request made do not error out When a content-length 0 gzipped file head request made, do not error out Feb 29, 2024
Copy link
Owner

@pjfanning pjfanning left a comment

Choose a reason for hiding this comment

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

lgtm

@pjfanning pjfanning merged commit f7dd2af into pjfanning:main Mar 1, 2024
6 checks passed
@pjfanning
Copy link
Owner

Thanks - merged

@pjfanning
Copy link
Owner

publishing 0.1.1 now

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.

Making a HEAD request to an empty S3 object that is gzipped throws an exception
2 participants