Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept multiple Content-Types for building an image #7208

Closed

Conversation

orenbm
Copy link

@orenbm orenbm commented Aug 3, 2020

Signed-off-by: orenbm [email protected]
Fixes: #7185

Currently we accept only the 'application/x-tar' header when sending
the tar file for building an image. However, this header has the aliases
'application/tar' and 'application/x-gtar'

so we should accept those as well.

Furthermore, docker-compose uses 'application/tar' so accepting this content-type
will take us one step further in supporting docker-compose with the Podman API.

@openshift-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: orenbm
To complete the pull request process, please assign jwhonce
You can assign the PR to them by writing /assign @jwhonce in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@orenbm orenbm force-pushed the accept-multiple-content-types branch 2 times, most recently from bedc733 to 025d131 Compare August 3, 2020 21:12
Currently we accept only the 'application/x-tar' header when sending
the tar file for building an image. However, this header has the aliases
'application/tar' and 'application/x-gtar' so we should accept those as well.

Furthermore, docker-compose uses 'application/tar' so accepting this content-type
will take us one step further in supporting docker-compose with the Podman API.

Signed-off-by: orenbm <[email protected]>
@orenbm orenbm force-pushed the accept-multiple-content-types branch from 025d131 to 9024370 Compare August 3, 2020 21:17
@mheon
Copy link
Member

mheon commented Aug 3, 2020

I believe @baude has a fix out already - #7205

@orenbm
Copy link
Author

orenbm commented Aug 4, 2020

thanks @mheon , didn't see that. I'll leave a comment there and close this one.

@orenbm orenbm closed this Aug 4, 2020
@orenbm orenbm deleted the accept-multiple-content-types branch August 4, 2020 07:00
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 24, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Podman API doesn't accept "application/tar" content-type for "docker-compose build"
3 participants