Skip to content

Commit cfb3fdd

Browse files
prestamoduleJacobBennett
authored andcommitted
- Fix missing $excludeKeywords assign (#32)
1 parent 66a5f67 commit cfb3fdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Middleware/AddHttp2ServerPush.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function getConfig($key, $default=false) {
5151
*/
5252
protected function generateAndAttachLinkHeaders(Response $response, $limit = null, $sizeLimit = null, $excludeKeywords=null)
5353
{
54-
$excludeKeywords ?? $this->getConfig('exclude_keywords', []);
54+
$excludeKeywords = $excludeKeywords ?? $this->getConfig('exclude_keywords', []);
5555
$headers = $this->fetchLinkableNodes($response)
5656
->flatten(1)
5757
->map(function ($url) {

0 commit comments

Comments
 (0)