symfony/mercure

Incorrect query parameter name for lastEventId in mercure twig function

Closed this issue · 0 comments

In twig extension used incorrect query parameter name "Last-Event-ID" instead "lastEventID". According to specs - the subscriber MUST send the event ID provided during the discovery as a Last-Event-ID header or a lastEventID query parameter

$url .= '&Last-Event-ID='.rawurlencode($options['lastEventId']);