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

bug: Incorrect content-type header in Admin API Responses #1745

Closed
shenal opened this issue Jun 21, 2020 · 0 comments · Fixed by #1746
Closed

bug: Incorrect content-type header in Admin API Responses #1745

shenal opened this issue Jun 21, 2020 · 0 comments · Fixed by #1746

Comments

@shenal
Copy link
Contributor

shenal commented Jun 21, 2020

Issue description

APISIX Admin API sets the content-type as text/plain when the actual content-type is application/json

Environment

  • apisix version (cmd: apisix version): master
  • OS: ubuntu

Minimal test code / Steps to reproduce the issue

  1. Send any valid request to APISIX Admin API
  2. Response headers contain content-type as text/plain

What's the actual result? (including assertion message & call stack if applicable)

Response Headers contain Content-Type: text/plain

What's the expected result?

Response Headers should contain Content-Type: application/json

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 a pull request may close this issue.

1 participant