Commit a35a08e9c07a15889b6e964dd61671bbd0d418b2

Thomas de Grivel 2018-06-05T18:55:22

72 column max

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/thot.lisp b/thot.lisp
index 820387d..ff0d4fd 100644
--- a/thot.lisp
+++ b/thot.lisp
@@ -456,9 +456,10 @@ The requested url "
      (when *stop*
        (return))
      (handler-case
-         (let* ((request (make-instance 'request :stream request-stream))
+         (let* ((req (make-instance 'request :stream request-stream))
                 (reply (make-instance 'reply :stream reply-stream))
-                (result (funcall (request-reader request reply #'request-cont))))
+                (reader (request-reader req reply #'request-cont))
+                (result (funcall reader)))
            (unless (eq :keep-alive result)
              (return)))
        (warning (w)