ethan

Ethan
@ethan

Making products people love ๐Ÿ”ฅ๐Ÿš€

ย ๐Ÿ”ฅ 0 day streak๐Ÿ‘ฅ 6 followers
View full profile
Fixed issue where some RSS feeds would return a 406 error
1Feed
#1Feed

Before I was requesting them with the Accept header "application/rss+xml", however some servers returned a 406 which means they couldn't return anything that matches the content type. This is probably because there are a wide variety of different content types used for RSS. So I updated the header to "application/rss+xml, *; q=0.1" which means it prefers RSS but will fall back to any content type (eg. plain XML, plain text)

Added ยท Completed
Makerlog

Where makers learn, build, and grow in public.

ยฉ Nifty Development, LLC