|
From: | Chris Burdess |
Subject: | [cp-patches] Re: Oddity in http Headers |
Date: | Mon, 16 May 2005 19:20:22 +0100 |
Tom Tromey wrote:
What is going on here is that the server returns a header line that only has \n for a terminator -- not the required \r\n. While this is wrong, it is better IMO to be lenient in what we accept. (This same applet works fine with the JDK.) The appended patch is kind of a hack around this. I was wondering what assumptions were intended for LineInputStream and its users. For instance, would it be better for the users to assume that LineInputStream strips the \r as well?
It would definitely be preferable to hack Headers rather than LineInputStream here: it would make LineInputStream much more complex and it has many more dependencies (in inetlib at least).
-- Chris Burdess
[Prev in Thread] | Current Thread | [Next in Thread] |