cst

Fun with Http Headers

August 25, 2006 15:17:22.850

I ran into a funny little bug in the Http client code in VW 7.4.1 via BottomFeeder - I stumbled on a report of difficulty reading this feed: http://planeterlang.org/rss20.xml. Here's the thing that caused a problem in the headers:


Content-Type: text/xml;charset=

The parser tries to read the charset, and makes assumptions about there being something to read - and of course, bails out. I hacked a quick fix to just have it assume utf-8 in those cases, and reported the bug to engineering for a more permanent fix in the base product.

Technorati Tags:

Comments

[] August 26, 2006 0:21:31.756

I think the default charset, if not otherwise specified may be ISO8859-1

 Share Tweet This
-->