Author: chabotc
Date: Thu Apr 2 10:48:02 2009
New Revision: 761243
URL: http://svn.apache.org/viewvc?rev=761243&view=rev
Log:
body_hash should be base64 encoded
Modified:
incubator/shindig/trunk/php/src/gadgets/SigningFetcher.php
Modified: incubator/shindig/trunk/php/src/gadgets/SigningFetcher.php
URL:
http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/gadgets/SigningFetcher.php?rev=761243&r1=761242&r2=761243&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/gadgets/SigningFetcher.php (original)
+++ incubator/shindig/trunk/php/src/gadgets/SigningFetcher.php Thu Apr 2
10:48:02 2009
@@ -136,7 +136,7 @@
} else {
// on any other content-type of post
(application/{json,xml,xml+atom}) use the body signing hash
// see
http://oauth.googlecode.com/svn/spec/ext/body_hash/1.0/drafts/4/spec.html for
details
- $queryParams['oauth_body_hash'] = sha1($request->getPostBody());
+ $queryParams['oauth_body_hash'] =
base64_encode(sha1($request->getPostBody()));
}
}
$msgParams = array();