From b16a9456d67dbc6453b6f42cf2569d6bd96f2b98 Mon Sep 17 00:00:00 2001 From: Nikko Bautista Date: Wed, 24 Apr 2013 16:05:27 -0700 Subject: [PATCH] Missing $ sign in Unirest::request --- lib/Unirest/Unirest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Unirest/Unirest.php b/lib/Unirest/Unirest.php index a0b30b0..a8f39c5 100644 --- a/lib/Unirest/Unirest.php +++ b/lib/Unirest/Unirest.php @@ -75,7 +75,7 @@ class Unirest $lowercaseHeaders = array(); foreach ($headers as $key => $val) { $key = trim(strtolower($key)); - if ($key == "user-agent" || key == "expect") continue; + if ($key == "user-agent" || $key == "expect") continue; $lowercaseHeaders[] = $key . ": " . $val; } $lowercaseHeaders[] = "user-agent: unirest-php/1.0";