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

Fix for expiration value #4454

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions library/Zend/Feed/PubSubHubbub/Subscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ protected function _doRequest($mode)
$client->setAuth($auth[0], $auth[1]);
}
$client->setUri($url);
$client->setRawBody($this->_getRequestParameters($url, $mode));
$client->setRawBody($params = $this->_getRequestParameters($url, $mode));
$response = $client->send();
if ($response->getStatusCode() !== 204
&& $response->getStatusCode() !== 202
Expand Down Expand Up @@ -734,7 +734,7 @@ protected function _getRequestParameters($hubUrl, $mode)
'topic_url' => $params['hub.topic'],
'hub_url' => $hubUrl,
'created_time' => $now->format('Y-m-d H:i:s'),
'lease_seconds' => $expires,
'lease_seconds' => $params['hub.lease_seconds'],
'verify_token' => hash('sha256', $params['hub.verify_token']),
'secret' => null,
'expiration_time' => $expires,
Expand Down