Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions spire/templates/apps/feeder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1298,7 +1298,11 @@ Resources:
const body = data.replace(
/<enclosure url="([^"]+)"/g,
`<enclosure url="$1?auth=${auth}"`,
).replace(
/<media:content fileSize="([^"]+)" type="([^"]+)" url="([^"]+)"/g,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just double checked prod ... and enclosure_file_size / enclosure_content_type are never nil/blank for any published ep. So this should work.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh good call, I didn't think about that case, ty!

`<media:content fileSize="$1" type="$2" url="$3?auth=${auth}"`,
).replace(/{\?auth}"/g, `?auth=${auth}"`);
const headers = {
'Content-Type': resp.headers['content-type'],
'Cache-Control': `public, max-age=300`,
Expand Down