Commit 5781f23fe60d4c1e9ff69d348073295dba94f6b7

Thomas de Grivel 2018-06-05T18:54:13

faster content

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/thot.lisp b/thot.lisp
index 153f9e2..670fad6 100644
--- a/thot.lisp
+++ b/thot.lisp
@@ -329,9 +329,10 @@
 
 (defun content (&rest parts)
   (end-headers)
-  (walk-str (lambda (x)
-              (stream-write-sequence (reply-stream) x))
-            parts))
+  (let ((stream (reply-stream)))
+    (walk-str (lambda (x)
+                (stream-write-sequence stream x))
+              parts)))
 
 (defun 404-not-found ()
   (status "404 Not found")