Skip to content
Snippets Groups Projects
Commit cd8f531b authored by Rasmus Fuhse's avatar Rasmus Fuhse
Browse files

re #16 : add hashing-algorithm in github-style

parent f8ccde54
Branches
No related tags found
No related merge requests found
...@@ -83,7 +83,7 @@ class PluginMarket extends StudIPPlugin implements SystemPlugin, HomepagePlugin ...@@ -83,7 +83,7 @@ class PluginMarket extends StudIPPlugin implements SystemPlugin, HomepagePlugin
if ($follower['security_token']) { if ($follower['security_token']) {
$calculatedHash = hash_hmac("sha1", $payload, $follower['security_token']); $calculatedHash = hash_hmac("sha1", $payload, $follower['security_token']);
$header[] = "X_HUB_SIGNATURE: ".$calculatedHash; $header[] = "X_HUB_SIGNATURE: sha1=".$calculatedHash;
} }
$header[] = "Content-Type: application/json"; $header[] = "Content-Type: application/json";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment