Conversation
Prior to this patch, the application/json Content-Type header was set but he body is a tar file as returned by Docker::Util.create_tar. That this code was there for a long time suggests Docker doesn't check the content type. However, podman's REST API does check the header and rejects the request. After this patch, it is accepted.
|
It appears to fail on a lack of test coverage? Not sure how to solve that. |
|
I think this is still correct. The content type is always |
|
@ekohl If you try more cases, you'll find that |
|
I agree. Given this hasn't seen a review from a maintainer in a few months I must admit I mostly forgot about this. |
Prior to this patch, the application/json Content-Type header was set but he body is a tar file as returned by Docker::Util.create_tar. That this code was there for a long time suggests Docker doesn't check the content type. However, podman's REST API does check the header and rejects the request. After this patch, it is accepted.