/[classpath]/classpath/gnu/java/net/protocol/http/Connection.java
ViewVC logotype

Diff of /classpath/gnu/java/net/protocol/http/Connection.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.19.2.1 by gnu_andrew, Sat Jan 15 17:01:42 2005 UTC revision 1.19.2.2 by gnu_andrew, Sun Jan 16 02:14:45 2005 UTC
# Line 217  public final class Connection extends Ht Line 217  public final class Connection extends Ht
217        new PrintWriter(new OutputStreamWriter(outputStream, "8859_1"));        new PrintWriter(new OutputStreamWriter(outputStream, "8859_1"));
218            
219      // Send request including any request properties that were set.      // Send request including any request properties that were set.
220      outputWriter.print (getRequestMethod() + " " + url.getFile()      String requestFile = url.getFile();
221                          + " HTTP/1.1\r\n");      outputWriter.print(getRequestMethod() + " "
222                           + (requestFile.length() != 0 ? requestFile : "/")
223                           + " HTTP/1.1\r\n");
224    
225      // Set additional HTTP headers.      // Set additional HTTP headers.
226      if (getRequestProperty ("Host") == null)      if (getRequestProperty ("Host") == null)

Legend:
Removed from v.1.19.2.1  
changed lines
  Added in v.1.19.2.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26