This commit is contained in:
Tony Tam
2015-01-30 00:06:48 -08:00
parent acfd25da72
commit 77034e59d3
3 changed files with 283 additions and 276 deletions

View File

@@ -272,7 +272,10 @@ class OperationView extends Backbone.View
headers = {}
headerArray = data.getAllResponseHeaders().split("\r")
for i in headerArray
h = i.split(':')
h = i.match(/^([^:]*?):(.*)$/)
if(!h)
h = []
h.shift()
if (h[0] != undefined && h[1] != undefined)
headers[h[0].trim()] = h[1].trim()