Browse Source

assume text/xml is an RSS feed

pull/49/head
Aaron Parecki 6 years ago
parent
commit
12f27517f4
No known key found for this signature in database GPG Key ID: 276C2817346D6056
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/XRay/Feeds.php

+ 1
- 1
lib/XRay/Feeds.php View File

@ -50,7 +50,7 @@ class Feeds {
'url' => $result['url'], 'url' => $result['url'],
'type' => 'atom' 'type' => 'atom'
]; ];
} elseif(strpos($contentType, 'application/rss+xml') !== false) {
} elseif(strpos($contentType, 'application/rss+xml') !== false || strpos($contentType, 'text/xml') !== false) {
$feeds[] = [ $feeds[] = [
'url' => $result['url'], 'url' => $result['url'],
'type' => 'rss' 'type' => 'rss'

Loading…
Cancel
Save