r5250: *** empty log message ***
[cl-modlisp.git] / utils.lisp
index 064e362e5f1600a3df3403404d90f6fb63ea7eb6..c216022a4e447ff7cf6a9cffe02e67b548cd2ce6 100644 (file)
@@ -7,7 +7,7 @@
 ;;;; Programmer:    Kevin M. Rosenberg
 ;;;; Date Started:  Dec 2002
 ;;;;
-;;;; $Id: utils.lisp,v 1.2 2003/07/05 00:51:04 kevin Exp $
+;;;; $Id: utils.lisp,v 1.3 2003/07/08 06:40:00 kevin Exp $
 ;;;; *************************************************************************
 
 (in-package #:modlisp)
             (setq ,result (progn ,@body)))))
        (cond
        (,precomp
-        (write-header-line "Content-Length" (write-to-string (length ,outstr)))
+        (write-header-line "Content-Length" 
+                           (write-to-string (length ,outstr)))
         (write-header-line "Keep-Socket" "1")
         (write-string "end" *apache-socket*)
         (write-char #\NewLine *apache-socket*)
         (write-string ,outstr *apache-socket*)
+        (force-output *apache-socket*)
         (set-close-apache-socket nil))
        (t
-        (finish-output *apache-socket*)
-        (set-close-apache-socket t)))
+        (set-close-apache-socket t)
+        (finish-output *apache-socket*)))
        ,result)))
 
 (defun redirect-to-location (url)