auth
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user