Commit ff05f911 authored by tomrac87's avatar tomrac87
Browse files

Added proper formatting for hal+json Content-Type responses in coffeescript source file

parent 5f4eec1b
......@@ -192,7 +192,7 @@ class OperationView extends Backbone.View
if content == undefined
code = $('<code />').text("no content")
pre = $('<pre class="json" />').append(code)
else if contentType.indexOf("application/json") == 0
else if contentType.indexOf("application/json") == 0 || contentType.indexOf("application/hal+json") == 0
code = $('<code />').text(JSON.stringify(JSON.parse(content), null, 2))
pre = $('<pre class="json" />').append(code)
else if contentType.indexOf("application/xml") == 0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment