Use jQuery for trimming

This commit is contained in:
Björn Rochel
2015-04-16 20:37:19 +02:00
parent 6a1707e3ba
commit 569830b4ac

View File

@@ -549,7 +549,7 @@ SwaggerUi.Views.OperationView = Backbone.View.extend({
url = response.request.url; url = response.request.url;
} }
var headers = response.headers; var headers = response.headers;
content = content.trim(); content = jQuery.trim(content);
// if server is nice, and sends content-type back, we can use it // if server is nice, and sends content-type back, we can use it
var contentType = null; var contentType = null;