diff --git a/composer.json b/composer.json index 734bee9..7dfe4f8 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "nategood/httpful", + "name": "michelwilhelm/httpful", "description": "A Readable, Chainable, REST friendly, PHP HTTP Client", "homepage": "http://github.com/nategood/httpful", "license": "MIT", diff --git a/src/Httpful/Request.php b/src/Httpful/Request.php index f0cb789..ca1fac4 100755 --- a/src/Httpful/Request.php +++ b/src/Httpful/Request.php @@ -950,7 +950,9 @@ public function _curlPrep() public function _determineLength($str) { if (function_exists('mb_strlen')) { - return mb_strlen($str, '8bit'); + if (is_string($str)) { + return mb_strlen($str, '8bit'); + } } else { return strlen($str); }