We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb85677 commit cd64747Copy full SHA for cd64747
Sources/ContainerRegistry/HTTPClient.swift
@@ -81,12 +81,6 @@ extension URLSession: HTTPClient {
81
}
82
83
84
- // Content-Type should always be set, but there may be registries which don't set it. If it is not present, the HTTP standard allows
85
- // clients to guess the content type, or default to `application/octet-stream'.
86
- guard let _ = response.headerFields[.contentType] else {
87
- throw HTTPClientError.missingResponseHeader("Content-Type")
88
- }
89
-
90
// A HEAD request has no response body and cannot be decoded
91
if request.method == .head {
92
throw HTTPClientError.unexpectedStatusCode(status: response.status, response: response, data: nil)
0 commit comments