forked from wallabag/wallabag
Use Graby's http headers configuration for the authentication request
This commit is contained in:
@ -70,6 +70,13 @@ class SiteConfig
|
||||
*/
|
||||
protected $password;
|
||||
|
||||
/**
|
||||
* Associative array of HTTP headers to send with the form.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $httpHeaders = [];
|
||||
|
||||
/**
|
||||
* SiteConfig constructor. Sets the properties by name given a hash.
|
||||
*
|
||||
@ -260,4 +267,16 @@ class SiteConfig
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getHttpHeaders(): array
|
||||
{
|
||||
return $this->httpHeaders;
|
||||
}
|
||||
|
||||
public function setHttpHeaders(array $httpHeaders): self
|
||||
{
|
||||
$this->httpHeaders = $httpHeaders;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user