[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] FYI: HttpURLConnection fix
From: |
Andrew John Hughes |
Subject: |
[cp-patches] FYI: HttpURLConnection fix |
Date: |
Thu, 26 May 2005 17:53:11 +0100 |
User-agent: |
Mutt/1.5.9i |
I'm committing the attached patch which fixes a couple
of issues with our implementation of java.net.HttpURLConnection:
* Fixes a null pointer exception thrown in connect()
for 304 responses.
* Fixes an invalid exception thrown on 404 return codes.
* Prevents attempts to read a non-existant body for 304
responses. This caused a long unnecessary pause in
the connect() method.
Changelog:
2005-05-26 Andrew John Hughes <address@hidden>
* gnu/java/net/protocol/http/HTTPURLConnection.java:
(connect()): Fixed a null pointer exception with 304
responses and an inappropriate exception with 404s.
* gnu/java/net/protocol/http/Request.java:
(readResponse(java.io.LineInputStream)): Fixed a
fruitless attempt to read the non-existant body
of a 304 response.
--
Andrew :-)
Please avoid sending me Microsoft Office (e.g. Word, PowerPoint) attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html
No software patents in Europe -- http://nosoftwarepatents.com
"Value your freedom, or you will lose it, teaches history.
`Don't bother us with politics' respond those who don't want to learn."
-- Richard Stallman
Escape the Java Trap with GNU Classpath!
http://www.gnu.org/philosophy/java-trap.html
public class gcj extends Freedom implements Java { ... }
http-01.diff
Description: Text document
signature.asc
Description: Digital signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cp-patches] FYI: HttpURLConnection fix,
Andrew John Hughes <=