Open Ovis opened 2 years ago
Hi. I'm trying to create a ShortCode that can use oEmbed in a generic way. Internally, it is assumed to use GetEmbedResultAsync.
GetEmbedResultAsync
During creation, an error occurred when retrieving information from Flickr. e.g) Unknown content type for oEmbed response
Unknown content type for oEmbed response
I checked and found that Flickr's oEmbedAPI specifies text/xml as ContextType.
text/xml
https://github.com/statiqdev/Statiq.Web/blob/d9da990fd75b14575d7679273373d7ab5da54b78/src/Statiq.Web/Shortcodes/EmbedShortcode.cs#L99
GetEmbedResultAsync seems to have an error because it assumes Application/Xml.
Application/Xml
Could you please fix this branch to allow text/xml?
e.g.) https://www.flickr.com/services/oembed/?url=https://www.flickr.com/photos/yuta_arai_0206/8008087593/
Hi. I'm trying to create a ShortCode that can use oEmbed in a generic way. Internally, it is assumed to use
GetEmbedResultAsync
.During creation, an error occurred when retrieving information from Flickr. e.g)
Unknown content type for oEmbed response
I checked and found that Flickr's oEmbedAPI specifies
text/xml
as ContextType.https://github.com/statiqdev/Statiq.Web/blob/d9da990fd75b14575d7679273373d7ab5da54b78/src/Statiq.Web/Shortcodes/EmbedShortcode.cs#L99
GetEmbedResultAsync
seems to have an error because it assumesApplication/Xml
.Could you please fix this branch to allow
text/xml
?e.g.) https://www.flickr.com/services/oembed/?url=https://www.flickr.com/photos/yuta_arai_0206/8008087593/