[go: up one dir, main page]

Skip to content

Commit

Permalink
add head handler for rss feed
Browse files Browse the repository at this point in the history
  • Loading branch information
jlipps committed Oct 13, 2022
1 parent 1fa5817 commit ba6ef5d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion app/api/podcast/rss.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,11 @@ export async function get (/*req*/) {
}
}

export const head = get
export async function head(req) {
const res = await get(req)
res.headers['content-length'] = res.xml.length
delete res.xml
res.headers['content-type'] = 'application/xml; charset=utf8'
res.body = ''
return res
}

0 comments on commit ba6ef5d

Please sign in to comment.