Merge -r 1208156:1208157 from trunk to branch. FIXES: HDFS-2606

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.23@1208158 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Alejandro Abdelnur 2011-11-30 00:29:35 +00:00
parent a5fa0471e2
commit 98b5c7f025
2 changed files with 4 additions and 0 deletions

View File

@ -75,6 +75,9 @@ Release 0.23.1 - UNRELEASED
HDFS-2596. TestDirectoryScanner doesn't test parallel scans. (eli)
HDFS-2606. webhdfs client filesystem impl must set the content-type
header for create/append. (tucu)
Release 0.23.0 - 2011-11-01
INCOMPATIBLE CHANGES

View File

@ -357,6 +357,7 @@ public class WebHdfsFileSystem extends FileSystem
conn.setRequestMethod(op.getType().toString());
if (op.getDoOutput()) {
conn = twoStepWrite(conn, op);
conn.setRequestProperty("Content-Type", "application/octet-stream");
}
conn.setDoOutput(op.getDoOutput());
conn.connect();