Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Commit eb23c7b

Browse files
baszweierophinney
authored andcommitted
better detection + matched against addition
1 parent f1f6e0d commit eb23c7b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Header/AbstractAccept.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,8 @@ public function match($matchAgainst)
303303
foreach ($matchAgainst as $right) {
304304
if ($right->type == '*' || $left->type == '*') {
305305
if ($res = $this->matchAcceptParams($left, $right)) {
306+
$res->matchedAgainst = $right;
307+
306308
return $res;
307309
}
308310
}
@@ -314,6 +316,8 @@ public function match($matchAgainst)
314316
$right->format == '*' || $left->format == '*')))
315317
{
316318
if ($res = $this->matchAcceptParams($left, $right)) {
319+
$res->matchedAgainst = $right;
320+
317321
return $res;
318322
}
319323
}

0 commit comments

Comments
 (0)