diff --git a/composer.json b/composer.json index 8ec7687e..bb82c008 100644 --- a/composer.json +++ b/composer.json @@ -39,8 +39,8 @@ }, "extra": { "branch-alias": { - "dev-master": "2.4-dev", - "dev-develop": "2.5-dev" + "dev-master": "2.1-dev", + "dev-develop": "2.2-dev" } }, "autoload-dev": { diff --git a/src/PubSubHubbub/AbstractCallback.php b/src/PubSubHubbub/AbstractCallback.php index f54f0f48..cc408e56 100644 --- a/src/PubSubHubbub/AbstractCallback.php +++ b/src/PubSubHubbub/AbstractCallback.php @@ -199,7 +199,9 @@ public function getSubscriberCount() protected function _detectCallbackUrl() { $callbackUrl = ''; - if (isset($_SERVER['HTTP_X_REWRITE_URL'])) { + if (isset($_SERVER['HTTP_X_ORIGINAL_URL'])) { + $callbackUrl = $_SERVER['HTTP_X_ORIGINAL_URL']; + } elseif (isset($_SERVER['HTTP_X_REWRITE_URL'])) { $callbackUrl = $_SERVER['HTTP_X_REWRITE_URL']; } elseif (isset($_SERVER['REQUEST_URI'])) { $callbackUrl = $_SERVER['REQUEST_URI']; diff --git a/src/Writer/Entry.php b/src/Writer/Entry.php index 1df24456..ea62bddf 100644 --- a/src/Writer/Entry.php +++ b/src/Writer/Entry.php @@ -177,7 +177,7 @@ public function setContent($content) /** * Set the feed creation date * - * @param string|null|DateTime $date + * @param null|integer|DateTime $date * @throws Exception\InvalidArgumentException * @return Entry */ @@ -198,7 +198,7 @@ public function setDateCreated($date = null) /** * Set the feed modification date * - * @param string|null|DateTime $date + * @param null|integer|DateTime $date * @throws Exception\InvalidArgumentException * @return Entry */