HDFS-2606. webhdfs client filesystem impl must set the content-type header for create/append. (tucu)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1208157 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
670fa8770b
commit
afbc3aa30c
@ -116,6 +116,9 @@ Trunk (unreleased changes)
|
|||||||
HDFS-2532. TestDfsOverAvroRpc timing out in trunk (Uma Maheswara Rao G
|
HDFS-2532. TestDfsOverAvroRpc timing out in trunk (Uma Maheswara Rao G
|
||||||
via todd)
|
via todd)
|
||||||
|
|
||||||
|
HDFS-2606. webhdfs client filesystem impl must set the content-type
|
||||||
|
header for create/append. (tucu)
|
||||||
|
|
||||||
Release 0.23.1 - UNRELEASED
|
Release 0.23.1 - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
@ -357,6 +357,7 @@ private HttpURLConnection httpConnect(final HttpOpParam.Op op, final Path fspath
|
|||||||
conn.setRequestMethod(op.getType().toString());
|
conn.setRequestMethod(op.getType().toString());
|
||||||
if (op.getDoOutput()) {
|
if (op.getDoOutput()) {
|
||||||
conn = twoStepWrite(conn, op);
|
conn = twoStepWrite(conn, op);
|
||||||
|
conn.setRequestProperty("Content-Type", "application/octet-stream");
|
||||||
}
|
}
|
||||||
conn.setDoOutput(op.getDoOutput());
|
conn.setDoOutput(op.getDoOutput());
|
||||||
conn.connect();
|
conn.connect();
|
||||||
|
Loading…
Reference in New Issue
Block a user