Updated library to use cURL instead of file_get_contents

This commit is contained in:
Evan Seguin
2012-07-19 10:50:31 -07:00
parent 04f9c98ad9
commit 1c503f13ff
3 changed files with 24 additions and 17 deletions

View File

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