protected function multi($requests, $options = array()) { if ($this->token) { // Adds authorisation head to a request so that it can be authentcated $this->setHeader('Authorization: ' . $this->get_auth_header_name() . '"' . $this->token . '"'); } foreach ($this->persistantheaders as $h) { $this->setHeader($h); } $ret = parent::multi($requests, $options); // reset headers for next request $this->header = array(); return $ret; }