瀏覽代碼

HDFS-17040. Namenode web UI should set content type to application/octet-stream when uploading a file. (#5721)

Attila Magyar 7 月之前
父節點
當前提交
68315744f0
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.js

+ 2 - 1
hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.js

@@ -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) {