summaryrefslogtreecommitdiff
path: root/src/io/OAuthRequester.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/io/OAuthRequester.java')
-rw-r--r--src/io/OAuthRequester.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/io/OAuthRequester.java b/src/io/OAuthRequester.java
index 77c41c0..c3538ee 100644
--- a/src/io/OAuthRequester.java
+++ b/src/io/OAuthRequester.java
@@ -101,14 +101,16 @@ public class OAuthRequester extends AbstractRequester {
* Signs a HTTP request.
*
* @param conn An open HTTP connection with data ready to be sent.
+ * @param postData The same that got written to the output stream.
* @throws OAuthMessageSignerException
* @throws OAuthExpectationFailedException
* @throws OAuthCommunicationException
*/
- public void sign(HttpURLConnection conn) throws OAuthMessageSignerException,
- OAuthExpectationFailedException, OAuthCommunicationException {
+ public void sign(HttpURLConnection conn, String postData) throws
+ OAuthMessageSignerException, OAuthExpectationFailedException,
+ OAuthCommunicationException {
HttpURLConnectionRequestAdapter request;
- request = new HttpURLConnectionRequestAdapter(conn);
+ request = new HttpURLConnectionPostRequestAdapter(conn, postData);
consumer.sign(request);
}