fixed bug of cookies in authorized_request() method