mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 01:55:21 +02:00
feat: add vendor http header to cached responses (#4040)
This commit is contained in:
parent
8ca1b90840
commit
73289324bd
4 changed files with 15 additions and 5 deletions
|
@ -178,7 +178,6 @@ class FeedItem
|
|||
} else {
|
||||
$this->author = $author;
|
||||
}
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getContent(): ?string
|
||||
|
@ -284,7 +283,6 @@ class FeedItem
|
|||
} else {
|
||||
$this->misc[$name] = $value;
|
||||
}
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function toArray(): array
|
||||
|
|
|
@ -331,7 +331,14 @@ final class Response
|
|||
return array_pop($header);
|
||||
}
|
||||
|
||||
public function withBody(string $body): Response
|
||||
public function withHeader(string $name, string $value): self
|
||||
{
|
||||
$clone = clone $this;
|
||||
$clone->headers[$name] = [$value];
|
||||
return $clone;
|
||||
}
|
||||
|
||||
public function withBody(string $body): self
|
||||
{
|
||||
$clone = clone $this;
|
||||
$clone->body = $body;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue