This project has moved and is read-only. For the latest updates, please go here.


Whitespace in Content-Encoding HTTP header


I have been using HtmlAgilityPack for a work project, and at one point we encountered a page that had whitespace in the value of the Content-Encoding: HTTP header line (like "iso-8859-1 "). Attached is a small bugfix to trim the text so that this isn't a problem for others.


file attachments

Closed Sep 17, 2009 at 1:13 AM by DarthObiwan


cdonnellytx wrote Oct 29, 2006 at 11:40 PM

I just realized it's not specifically in the HTTP header but the tag equivalent. Either way the issue is the same, though...


wrote Apr 11, 2007 at 7:45 AM

DarthObiwan wrote Sep 17, 2009 at 1:10 AM

I've incorporated this fix into the 1.4.0 branch

wrote Sep 17, 2009 at 1:13 AM

wrote Feb 22, 2013 at 2:47 AM

wrote May 16, 2013 at 1:33 PM