Skip to content

Conversation

@euanh
Copy link
Collaborator

@euanh euanh commented Oct 15, 2024

Motivation

ECR does not set the Content-Type header in its response to a blob upload. If it is not present, the HTTP standard allows clients to guess the content type, or default to `application/octet-stream'. In this case, knowing the content type is not critical so there is no need to check for it.

Modifications

Do not check that responses contain the Content-Type header in the low-level HTTP client.

Result

Blob uploads to ECR will not fail.

Test Plan

Automated tests continue to pass; tested manually with ECR.

@euanh euanh added semver/minor Adds new public API. area/interoperability Improvements to compatibility with other systems. labels Oct 15, 2024
@euanh euanh merged commit bdb9cdb into apple:main Oct 15, 2024
16 checks passed
@euanh euanh deleted the tolerate-missing-content-type branch October 15, 2024 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/interoperability Improvements to compatibility with other systems. semver/minor Adds new public API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant