[armedbear-cvs] r12656 - trunk/abcl/src/org/armedbear/lisp/util

Mark Evenson mevenson at common-lisp.net
Thu May 6 20:15:32 UTC 2010


Author: mevenson
Date: Thu May  6 16:15:26 2010
New Revision: 12656

Log:
Properly implement HTTP/1.1 HEAD requests.



Modified:
   trunk/abcl/src/org/armedbear/lisp/util/HttpHead.java

Modified: trunk/abcl/src/org/armedbear/lisp/util/HttpHead.java
==============================================================================
--- trunk/abcl/src/org/armedbear/lisp/util/HttpHead.java	(original)
+++ trunk/abcl/src/org/armedbear/lisp/util/HttpHead.java	Thu May  6 16:15:26 2010
@@ -92,8 +92,9 @@
                 return result;
             }
 
-            String head = "HEAD " + url + " HTTP/1.1";
+            String head = "HEAD " + url.getPath() + " HTTP/1.1";
             out.println(head);
+            out.println("Host: " + url.getAuthority());
             out.println("Connection: close");
             out.println("");
             out.flush();




More information about the armedbear-cvs mailing list