소스 검색

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

Attila Magyar 10 달 전
부모
커밋
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) {