这是indexloc提供的服务,不要输入任何密码
Skip to content
This repository was archived by the owner on Mar 4, 2021. It is now read-only.

Conversation

@tmack8001
Copy link
Contributor

@tmack8001 tmack8001 commented Jun 8, 2016

Since this resource returns a JSON Array, let's set the Content-Type to the appropriate thing. Currently callers of this API are seeing a content-type of text/plain which technically is true, but for ease of integration and automated tools it should be set to reflect we are returning JSON in the body so "application/json" would be more accurate.

I also went beyond the original Issue #260 I created and am proposing to update the JanitorMonkeyResource in addition to the ChaosMonkeyResource.

Addresses Issue #260

@tmack8001 tmack8001 changed the title updating ChaosMonkeyResource to have application/json content-type updating Resources to have application/json content-type Jun 8, 2016
@ebukoski
Copy link
Contributor

LGTM, thanks for the contribution!

@ebukoski ebukoski merged commit a21ec60 into Netflix:master Jun 13, 2016
@tmack8001 tmack8001 deleted the content-type branch October 16, 2018 00:41
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