Skip to content

Commit f0b915b

Browse files
committed
- Removed temporary fix for issue with Apache.HttpClient request
1 parent ed91f99 commit f0b915b

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

src/main/java/net/authorize/util/HttpClient.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
import org.apache.http.entity.StringEntity;
2626
import org.apache.http.impl.client.DefaultHttpClient;
2727
import org.apache.http.protocol.HTTP;
28-
import org.apache.http.params.CoreProtocolPNames;
2928

3029
/**
3130
* Transportation object used to facilitate the communication with the respective gateway.
@@ -69,17 +68,15 @@ private static HttpPost createHttpPost(Environment env, Transaction transaction)
6968
}
7069

7170
httpPost = new HttpPost(postUrl);
72-
httpPost.getParams().setBooleanParameter(CoreProtocolPNames.USE_EXPECT_CONTINUE, false);
73-
httpPost.setHeader("Content-Type", "application/x-www-form-urlencoded; charset=utf-8");
71+
httpPost.setHeader("Content-Type", "application/x-www-form-urlencoded; charset=utf-8");
7472
httpPost.setEntity(new StringEntity(transaction.toNVPString()));
7573
} else if (transaction instanceof net.authorize.arb.Transaction ||
7674
transaction instanceof net.authorize.cim.Transaction ||
7775
transaction instanceof net.authorize.reporting.Transaction) {
7876

7977
postUrl = new URI(env.getXmlBaseUrl() + "/xml/v1/request.api");
8078
httpPost = new HttpPost(postUrl);
81-
httpPost.getParams().setBooleanParameter(CoreProtocolPNames.USE_EXPECT_CONTINUE, false);
82-
httpPost.setHeader("Content-Type", "text/xml; charset=utf-8");
79+
httpPost.setHeader("Content-Type", "text/xml; charset=utf-8");
8380
httpPost.setEntity(new StringEntity(transaction.toXMLString()));
8481
}
8582

0 commit comments

Comments
 (0)