From 8b47e051baaed073c09fa36f2a0a68846b9910ea Mon Sep 17 00:00:00 2001 From: thibaultCha Date: Thu, 5 Feb 2015 23:02:12 -0800 Subject: [PATCH] Set Mashape Key by calling setDefaultHeader --- src/Unirest/Request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Unirest/Request.php b/src/Unirest/Request.php index 97a6630..f926363 100644 --- a/src/Unirest/Request.php +++ b/src/Unirest/Request.php @@ -98,7 +98,7 @@ class Request */ public static function setMashapeKey($key) { - return self::$defaultHeaders['X-Mashape-Key'] = $key; + return self::defaultHeader('X-Mashape-Key', $key); } /**