This commit is contained in:
Marco Palladino
2012-06-05 17:53:17 +02:00
parent b509c7f2f4
commit 087b4a2dee

View File

@@ -30,7 +30,7 @@ class AuthUtil {
$header = ""; $header = "";
if (!($publicKey == null || $privateKey == null)) { if (!($publicKey == null || $privateKey == null)) {
$hash = hash_hmac("sha1", $publicKey, $privateKey); $hash = hash_hmac("sha1", $publicKey, $privateKey);
$header = "Proxy-Authorization: " . base64_encode($publicKey . ":" . $hash) . "\r\n"; $header = "X-Mashape-Authorization: " . base64_encode($publicKey . ":" . $hash) . "\r\n";
} }
return $header; return $header;
} }