Skip to content
This repository was archived by the owner on Jan 10, 2020. It is now read-only.

Commit

Permalink
Cleaning up some old code
Browse files Browse the repository at this point in the history
  • Loading branch information
cakebaker committed Jun 15, 2012
1 parent 81b5395 commit 1f7fe13
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Vendor/OAuth/OAuthClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,15 @@ private function createRequest($httpMethod, $url, $token, array $parameters) {
private function doGet($url) {
$socket = new HttpSocket();
$result = $socket->get($url);
$this->fullResponse = $socket->response;
$this->fullResponse = $result;

return $result;
}

private function doPost($url, $data) {
$socket = new HttpSocket();
$result = $socket->post($url, $data);
$this->fullResponse = $socket->response;
$this->fullResponse = $result;

return $result;
}
Expand Down Expand Up @@ -155,7 +155,7 @@ private function doPostMultipartFormData($url, $authorization, $paths, $data) {
'Authorization' => $authorization,
'Content-Type' => "multipart/form-data; boundary={$boundary}"),
'body' => $body));
$this->fullResponse = $socket->response;
$this->fullResponse = $result;

return $result;
}
Expand All @@ -168,7 +168,7 @@ private function doRequest($request) {
}

$response = array();
parse_str($data, $response);
parse_str($data->body, $response);

return $this->createOAuthToken($response);
}
Expand Down

0 comments on commit 1f7fe13

Please sign in to comment.