Upstream images can have any arbitrary `content-type` header so this PR normalizes the value before checking it.