Skip to content

Commit

Permalink
Fix typo in OAuth.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jan 3, 2013
1 parent 1e010c8 commit 304d6f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Cake/Network/Http/Auth/Oauth.php
Expand Up @@ -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) . '"';
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Test/TestCase/Network/Http/Auth/OauthTest.php
Expand Up @@ -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);
Expand Down

0 comments on commit 304d6f8

Please sign in to comment.