File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ ' @astrojs/rss ' : patch
3+ ---
4+
5+ Revert incorrect Content-Type header applied for RSS XML file
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ export default async function getRssResponse(rssOptions: RSSOptions): Promise<Re
8989 const rssString = await getRssString ( rssOptions ) ;
9090 return new Response ( rssString , {
9191 headers : {
92- 'Content-Type' : 'application/rss+ xml; charset=utf-8 ' ,
92+ 'Content-Type' : 'application/xml' ,
9393 } ,
9494 } ) ;
9595}
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ describe('rss', () => {
6262 assertXmlDeepEqual ( str , validXmlResult ) ;
6363
6464 const contentType = response . headers . get ( 'Content-Type' ) ;
65- assert . equal ( contentType , 'application/rss+ xml; charset=utf-8 ' ) ;
65+ assert . equal ( contentType , 'application/xml' ) ;
6666 } ) ;
6767
6868 it ( 'should be the same string as getRssString' , async ( ) => {
You can’t perform that action at this time.
0 commit comments