]> git.mxchange.org Git - friendica.git/commitdiff
Changed return value
authorMichael <heluecht@pirati.ca>
Tue, 1 Oct 2019 19:02:26 +0000 (19:02 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 1 Oct 2019 19:02:26 +0000 (19:02 +0000)
src/Network/CurlResult.php

index b9ab07be9f2f27c93dedb29b772e5efc7f325bb4..1c43db17d4abca58045fe3bd453da23653422ebe 100644 (file)
@@ -228,7 +228,7 @@ class CurlResult
         *
         * @param string $field optional header field. Return all fields if empty
         *
-        * @return string|bool the Curl headers, "false" when field isn't found
+        * @return string the Curl headers or the specified content of the header variable
         */
        public function getHeader(string $field = '')
        {
@@ -245,7 +245,7 @@ class CurlResult
                        }
                }
 
-               return false;
+               return '';
        }
 
        /**