asgard icon indicating copy to clipboard operation
asgard copied to clipboard

deployment/show endpoint returns JSON with content-type text/html

Open renaudguerin opened this issue 10 years ago • 0 comments

This one should be trivial to fix, unfortunately I'm not in a position to set up a Grails dev environment at the moment and send that pull request, sorry :(

/[region]/deployment/show/[deploymentId].json correctly returns JSON content, but with text/html as the content-type.

It's a little annoying as I'm most relying on content-type to check for errors when using the deployment API (failures are typically returned as an HTML error page, and I haven't found HTTP error codes from Asgard to be very reliable : for instance the "proceed" endpoint returns 404 even upon success, see issue #584 )

renaudguerin avatar Jun 25 '14 12:06 renaudguerin