seregazhuk\PinterestBot\Api\Request::getHttpHeaders PHP Method

getHttpHeaders() protected method

protected getHttpHeaders ( ) : array
return array
    protected function getHttpHeaders()
    {
        $headers = $this->getDefaultHttpHeaders();
        if ($this->csrfToken == Cookies::DEFAULT_TOKEN) {
            $headers[] = 'Cookie: csrftoken=' . Cookies::DEFAULT_TOKEN . ';';
        }
        return $headers;
    }