Fix header response on file upload
This commit is contained in:
@@ -173,9 +173,11 @@ class OperationView extends Backbone.View
|
|||||||
|
|
||||||
wrap: (data) ->
|
wrap: (data) ->
|
||||||
headers = {}
|
headers = {}
|
||||||
headerArray = data.getAllResponseHeaders().split(":")
|
headerArray = data.getAllResponseHeaders().split("\r")
|
||||||
for i in [0..headerArray.length/2] by (2)
|
for i in headerArray
|
||||||
headers[headerArray[i]] = headerArray[i+1]
|
h = i.split(':')
|
||||||
|
if (h[0] != undefined && h[1] != undefined)
|
||||||
|
headers[h[0].trim()] = h[1].trim()
|
||||||
|
|
||||||
o = {}
|
o = {}
|
||||||
o.content = {}
|
o.content = {}
|
||||||
|
|||||||
Reference in New Issue
Block a user