Commit: 9659529f8fcb9fa8277d6f4057d7ecf5df7d4054
Author: gwoo | Date: 2010-06-12 10:56:48 -0700
diff --git a/extensions/service/Oauth.php b/extensions/service/Oauth.php
index b658e00..53b5e90 100644
--- a/extensions/service/Oauth.php
+++ b/extensions/service/Oauth.php
@@ -58,20 +58,6 @@ class Oauth extends \lithium\net\http\Service {
}
/**
- * Initialize classes to be used
- *
- * @return void
- */
- public function _init() {
- parent::_init();
- $config = $this->_config;
-
- if (!empty($config['proxy'])) {
- $config['host'] = $config['proxy'];
- }
- }
-
- /**
* If a key is set returns the value of that key
* Without a key it will return config array
*
@@ -110,10 +96,12 @@ class Oauth extends \lithium\net\http\Service {
$header = 'OAuth realm="' . $options['realm'] . '",';
foreach ($oauth as $key => $val) {
$header .= $key . '="' . rawurlencode($val) . '",';
+ unset($oauth[$key]);
}
$options['headers'] = array('Authorization' => $header);
}
$data += $oauth;
+
$response = parent::send($method, $url, $data, $options);
if (strpos($response, 'oauth_token=') !== false) {