This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libgcj/14009] libgcj HttpURLConnection does not handle situation where retrieving url without trailing slash after domain.


------- Additional Comments From k dot allan-gcc at au dot darkbluesea dot com  2004-02-04 02:27 -------
Created an attachment (id=5673)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5673&action=view)
Patch against gcc/libjava/gnu/java/net/protocol/http/Connection.java

This patch rectifies the bug in this report by checking for an empty path and
substituting a "/" in place of nothing in the request line of the HTTP request
header.
The previous patch submitted had a bug. This new patch has been compiled and
tested:
  [ken@deviation spider]$ CLASSPATH=/opt/gcc/share/java/libgcj-3.5.0.jar
/opt/gcc/bin/gcj -ggdb -O --main=test test.java -o test &&
LD_LIBRARY_PATH=/opt/gcc/lib ./test apache.org
  Retrieveing: http://apache.org/
  Got: 8613 bytes
  Retrieveing: http://apache.org
  Got: 8613 bytes


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
Attachment #5672 is|0                           |1
           obsolete|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14009


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]