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

Adding newline to end of response body #164

Closed
montanaflynn opened this issue Apr 26, 2015 · 0 comments
Closed

Adding newline to end of response body #164

montanaflynn opened this issue Apr 26, 2015 · 0 comments
Assignees
Milestone

Comments

@montanaflynn
Copy link

Using the Kong admin API I noticed it doesn't include a newline after the response body. When using with a CLI tool like cURL this makes for a bad developer experience.

without newline:

$ curl 127.0.0.1:8000
{"message":"API not found"}$ curl 127.0.0.1:8001
{"hostname":"","tagline":"Welcome to Kong","version":"0.1.1beta-2","plugins":{"enabled_in_cluster":{},"available_on_server":["keyauth","basicauth","ratelimiting","tcplog","udplog","filelog"]}}$

with newline:

$ curl 127.0.0.1:8000
{"message":"API not found"}
$ curl 127.0.0.1:8001
{"hostname":"","tagline":"Welcome to Kong","version":"0.1.1beta-2","plugins":{"enabled_in_cluster":{},"available_on_server":["keyauth","basicauth","ratelimiting","tcplog","udplog","filelog"]}}
$
@subnetmarco subnetmarco added this to the 0.2.1 milestone Apr 28, 2015
thibaultcha added a commit that referenced this issue Apr 28, 2015
[fix] Add a new line to Admin API responses. Fix #164
@thibaultcha thibaultcha self-assigned this May 3, 2015
ctranxuan pushed a commit to streamdataio/kong that referenced this issue Aug 25, 2015
ctranxuan pushed a commit to streamdataio/kong that referenced this issue Aug 25, 2015
[fix] Add a new line to Admin API responses. Fix Kong#164
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

No branches or pull requests

3 participants