Commit 2bddfb68 authored by Tony Tam's avatar Tony Tam
Browse files

Merge pull request #327 from georgeOsdDev/master

Add image contents type resopnse handler
parents b7458010 846628f1
......@@ -214,6 +214,8 @@ class OperationView extends Backbone.View
else if contentType.indexOf("text/html") == 0
code = $('<code />').html(content)
pre = $('<pre class="xml" />').append(code)
else if contentType.indexOf("image/") == 0
pre = $('<img>').attr('src',data.request.url)
# don't know what to render!
code = $('<code />').text(content)
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