From 2ca6703c693d57e4ae67a7a8e9b4c60618d5ce04 Mon Sep 17 00:00:00 2001 From: Evan Seguin Date: Fri, 10 Aug 2012 10:51:14 -0700 Subject: [PATCH] Basic auth fix --- main/mashape/auth/BasicAuth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/mashape/auth/BasicAuth.php b/main/mashape/auth/BasicAuth.php index 571f8fc..5dbc280 100644 --- a/main/mashape/auth/BasicAuth.php +++ b/main/mashape/auth/BasicAuth.php @@ -7,7 +7,7 @@ class BasicAuth extends HeaderAuth { function __construct($username, $password) { $headerValue = $username . ":" . $password; - $this->header = "Authorization: " . base64_encode($headerValue); + $this->header = "Authorization: Basic " . base64_encode($headerValue); } public function handleHeader() {