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

spec: Location can be absolute or relative #80

Merged
merged 1 commit into from
Jan 8, 2020

Conversation

rchincha
Copy link
Contributor

@rchincha rchincha commented Jan 6, 2020

From the spec it is not clear how the Location header must be set.
This comment clarifies the behavior.

Fixes issue #79

spec.md Outdated
@@ -387,6 +387,8 @@ Uploads are started with a POST request which returns a url that can be used to

The `Location` header will be used to communicate the upload location after each request.
While it won't change in the this specification, clients SHOULD use the most recent value returned by the API.
Note that the `Location` header value returned may either be absolute or relative as described in
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The "Note that" doesn't seem necessary, try "The Location header value MAY be either an absolute or relative URI as described in"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pushed an update per comments. MUST instead of MAY makes more sense here?

From the spec it is not clear how the `Location` header must be set.
This comment clarifies the behavior.

Fixes issue opencontainers#79

Signed-off-by: Ramkumar Chinchani <[email protected]>
Copy link
Member

@dmcgowan dmcgowan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vbatts
Copy link
Member

vbatts commented Jan 8, 2020

LGTM

Approved with PullApprove

@vbatts vbatts merged commit 219f20c into opencontainers:master Jan 8, 2020
@vbatts vbatts mentioned this pull request Sep 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants