remove default add of Expect 100 Continue header

This commit is contained in:
Adrian Cole 2013-03-03 12:24:28 -08:00
parent 06f25e3ded
commit 8e881bd5c2
1 changed files with 0 additions and 1 deletions

View File

@ -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());