@@ -214,7 +214,7 @@ module Agents |
||
| 214 | 214 |
|
| 215 | 215 |
return [<<-XML, 200, 'text/xml'] |
| 216 | 216 |
<?xml version="1.0" encoding="UTF-8" ?> |
| 217 |
-<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/"> |
|
| 217 |
+<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"> |
|
| 218 | 218 |
<channel> |
| 219 | 219 |
<atom:link href=#{feed_url(secret: params['secret'], format: :xml).encode(xml: :attr)} rel="self" type="application/rss+xml" />
|
| 220 | 220 |
<atom:icon>#{feed_icon.encode(xml: :text)}</atom:icon>
|
@@ -153,7 +153,7 @@ describe Agents::DataOutputAgent do |
||
| 153 | 153 |
expect(content_type).to eq('text/xml')
|
| 154 | 154 |
expect(content.gsub(/\s+/, '')).to eq Utils.unindent(<<-XML).gsub(/\s+/, '') |
| 155 | 155 |
<?xml version="1.0" encoding="UTF-8" ?> |
| 156 |
- <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/"> |
|
| 156 |
+ <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"> |
|
| 157 | 157 |
<channel> |
| 158 | 158 |
<atom:link href="https://yoursite.com/users/#{agent.user.id}/web_requests/#{agent.id}/secret1.xml" rel="self" type="application/rss+xml"/>
|
| 159 | 159 |
<atom:icon>https://yoursite.com/favicon.ico</atom:icon> |
@@ -392,7 +392,7 @@ describe Agents::DataOutputAgent do |
||
| 392 | 392 |
expect(content_type).to eq('text/xml')
|
| 393 | 393 |
expect(content.gsub(/\s+/, '')).to eq Utils.unindent(<<-XML).gsub(/\s+/, '') |
| 394 | 394 |
<?xml version="1.0" encoding="UTF-8" ?> |
| 395 |
- <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/"> |
|
| 395 |
+ <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"> |
|
| 396 | 396 |
<channel> |
| 397 | 397 |
<atom:link href="https://yoursite.com/users/#{agent.user.id}/web_requests/#{agent.id}/secret1.xml" rel="self" type="application/rss+xml"/>
|
| 398 | 398 |
<atom:icon>https://yoursite.com/favicon.ico</atom:icon> |