Fixing visibility on curlHeader function