Skip to content

Conversation

@lucix-aws
Copy link
Contributor

Protocol tests for Content-Type. Also verifies Content-Length for both cases (body vs. empty).

Issue #

#567

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@lucix-aws lucix-aws requested a review from a team as a code owner April 4, 2022 17:59
@lucix-aws lucix-aws requested review from aajtodd and ianbotsf April 4, 2022 17:59
@github-actions
Copy link

github-actions bot commented Apr 4, 2022

A new generated diff is ready to view: __generated-main...__generated-fix-set-content-type2

protocol: "aws.protocols#restXml",
method: "PUT",
uri: "/mybucket",
host: "s3.us-west-2.amazonaws.com",
Copy link
Contributor

Choose a reason for hiding this comment

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

We may want to be explicit or at least put a comment in here since we can't actually create this exact request in the real world (anything other than us-east-1 IIRC requires the location constraint which results in a body)

@github-actions
Copy link

github-actions bot commented Apr 4, 2022

A new generated diff is ready to view: __generated-main...__generated-fix-set-content-type2

@github-actions
Copy link

A new generated diff is ready to view: __generated-main...__generated-fix-set-content-type2

@lucix-aws lucix-aws changed the title Protocol tests for Content-Type fix: only set Content-Type when appropriate Apr 14, 2022
@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 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@github-actions
Copy link

A new generated diff is ready to view: __generated-main...__generated-fix-set-content-type2

@lucix-aws lucix-aws merged commit f5a22c5 into main Apr 14, 2022
@lucix-aws lucix-aws deleted the fix-set-content-type2 branch April 14, 2022 15:19
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