Skip to content

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

Closed
@shenal

Description

@shenal

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions