mirror of https://github.com/apache/jclouds.git
remove default add of Expect 100 Continue header
This commit is contained in:
parent
06f25e3ded
commit
8e881bd5c2
|
@ -238,7 +238,6 @@ public class JavaUrlHttpCommandExecutorService extends BaseHttpCommandExecutorSe
|
|||
void writePayloadToConnection(Payload payload, HttpURLConnection connection) throws IOException {
|
||||
Long length = payload.getContentMetadata().getContentLength();
|
||||
connection.setRequestProperty(CONTENT_LENGTH, length.toString());
|
||||
connection.setRequestProperty("Expect", "100-continue");
|
||||
connection.setFixedLengthStreamingMode(length.intValue());
|
||||
connection.setDoOutput(true);
|
||||
CountingOutputStream out = new CountingOutputStream(connection.getOutputStream());
|
||||
|
|
Loading…
Reference in New Issue