HDFS-17040. Namenode web UI should set content type to application/octet-stream when uploading a file. (#5721)
This commit is contained in:
parent
37a74f0692
commit
68315744f0
@ -518,7 +518,8 @@
|
||||
url: url,
|
||||
data: file.file,
|
||||
processData: false,
|
||||
crossDomain: true
|
||||
crossDomain: true,
|
||||
contentType: 'application/octet-stream'
|
||||
}).always(function(data) {
|
||||
numCompleted++;
|
||||
if(numCompleted == files.length) {
|
||||
|
Loading…
Reference in New Issue
Block a user