Commit 355380a5 authored by Takeharu Oshida's avatar Takeharu Oshida
Browse files

Add image contents type resopnse handler

parent fcb82bda
......@@ -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/png") == 0 or contentType.indexOf("image/jpeg") == 0 or contentType.indexOf("image/gif") == 0
pre = $('<img>').attr('src',data.request.url)
else
# 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