Browse Source

send Link headers in notification

master
Aaron Parecki 5 years ago
parent
commit
3ce10e3593
No known key found for this signature in database GPG Key ID: 276C2817346D6056
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      lib/PushTask.php

+ 2
- 1
lib/PushTask.php View File

@ -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) {

Loading…
Cancel
Save