Skip to content
This repository has been archived by the owner on Aug 14, 2020. It is now read-only.

spec/ace: Specify Content-Type for metadata service. #677

Merged
merged 1 commit into from
Nov 22, 2016

Conversation

uiri
Copy link
Contributor

@uiri uiri commented Nov 21, 2016

Some of the metadata service endpoints explicitly specify a
Content-Type of text/plain; charset=us-ascii. For most other
endpoints, the ACE validator expects a Content-Type of
application/json.

The one exception is the HMAC verify endpoint which makes no mention
of its Content-Type nor even the contents of its response body. The
current implementation in rkt sets the Content-Type to
text/plain; charset=us-ascii which is now reflected in the spec.

Some of the metadata service endpoints explicitly specify a
Content-Type of text/plain; charset=us-ascii. For most other
endpoints, the ACE validator expects a Content-Type of
application/json.

The one exception is the HMAC verify endpoint which makes no mention
of its Content-Type nor even the contents of its response body. The
current implementation in `rkt` sets the Content-Type to
text/plain; charset=us-ascii which is now reflected in the spec.
@jonboulle
Copy link
Contributor

LGTM, thanks (I was wondering whether these should be in backticks, as you've done in the commit message, but can see arguments either way, so will leave it for now - feel free to follow up if you want to change that).

@jonboulle jonboulle merged commit 6e9f83f into appc:master Nov 22, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants