Skip to content
Permalink
Browse files

Fix typo in OAuth.

  • Loading branch information...
markstory committed Jan 3, 2013
1 parent 1e010c8 commit 304d6f8e24491ad46ddaeb2ff2a643aeac4d45e9
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/Cake/Network/Http/Auth/Oauth.php
  2. +1 −1 lib/Cake/Test/TestCase/Network/Http/Auth/OauthTest.php
@@ -229,7 +229,7 @@ protected function _normalizedParams($request, $oauthValues) {
* @return string
*/
protected function _buildAuth($data) {
$out = 'Oauth ';
$out = 'OAuth ';
$params = [];
foreach ($data as $key => $value) {
$params[] = $key . '="' . $this->_encode($value) . '"';
@@ -56,7 +56,7 @@ public function testPlainTextSigning() {
$auth->authentication($request, $creds);
$result = $request->header('Authorization');
$this->assertContains('Oauth', $result);
$this->assertContains('OAuth', $result);
$this->assertContains('oauth_version="1.0"', $result);
$this->assertContains('oauth_token="a%20token%20value"', $result);
$this->assertContains('oauth_consumer_key="a%20key"', $result);

0 comments on commit 304d6f8

Please sign in to comment.
You can’t perform that action at this time.