Skip to content

Eureka Server Not Using Content-Type #440

@ngourley

Description

@ngourley

When trying to use the REST API, the content-type header does not change the response format and always returns an xml body. According to the Eureka documentation for the REST API, specifying the content type should allow for JSON responses: https://github.com/Netflix/eureka/wiki/Eureka-REST-operations

// Both of these requests return an xml response
curl http://localhost:8761/eureka/apps -H "Content-Type:application/json;charset=UTF-8"
curl http://localhost:8761/eureka/apps -H "Content-Type:application/json"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions