From 3ce10e359326f372ec392fdb3208b7b2c3f838c1 Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Mon, 8 May 2017 12:00:03 -0700 Subject: [PATCH] send Link headers in notification --- lib/PushTask.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/PushTask.php b/lib/PushTask.php index a172fe4..5d9b886 100644 --- a/lib/PushTask.php +++ b/lib/PushTask.php @@ -161,7 +161,8 @@ class PushTask { echo "Notifying subscriber!\n"; $headers = [ - 'Content-Type: ' . ($feed->content_type ?: 'text/plain') + 'Content-Type: ' . ($feed->content_type ?: 'text/plain'), + 'Link: <' . Config::$base_url . '/>; rel="hub", <' . $feed->feed_url . '>; rel="self"', ]; if($subscription->secret) {