Automatic HTTP decompression should be enabled
emilast opened this issue · 0 comments
emilast commented
The Adobe blog does currently not work since the HTTP content is received gzip encoded and FeedReader does not decode it:
Example:
https://theblog.adobe.com/news/feed
Error:
System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
at System.Xml.Linq.XDocument.Parse(String text, LoadOptions options)
at System.Xml.Linq.XDocument.Parse(String text)
at CodeHollow.FeedReader.Parser.FeedParser.GetFeed(Byte[] feedContentData) in C:\Code\repos\FeedReader\FeedReader\Parser\FeedParser.cs:line 64
at CodeHollow.FeedReader.FeedReader.ReadFromByteArray(Byte[] feedContent) in C:\Code\repos\FeedReader\FeedReader\FeedReader.cs:line 258
at CodeHollow.FeedReader.FeedReader.<ReadAsync>d__10.MoveNext() in C:\Code\repos\FeedReader\FeedReader\FeedReader.cs:line 178
This fix is simple, I'll create a PR for it shortly.