Navigation Menu

Skip to content

Commit

Permalink
Merge branch 'master' into fix-for-lispworks
Browse files Browse the repository at this point in the history
  • Loading branch information
cxxxr committed Jun 25, 2018
2 parents 470923b + f31eba7 commit 121172c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
1 change: 1 addition & 0 deletions clack-test.asd
Expand Up @@ -22,6 +22,7 @@
:author "Eitaro Fukamachi"
:license "LLGPL"
:depends-on (:clack
:clack-handler-hunchentoot
:prove
:bordeaux-threads
:usocket
Expand Down
6 changes: 3 additions & 3 deletions roswell/clackup.ros
Expand Up @@ -31,9 +31,6 @@ Options:
--port
Binds to a TCP port. Defaults to 5000.
--debug
Debug flag. The default is T.
--use-default-middlewares
A flag if use default middlewares. The default is T.
Specify NIL for preventing from loading those middlewares.
Expand Down Expand Up @@ -151,4 +148,7 @@ Options:
;; Disable threads
(setf (getf key-args :use-thread) nil)

;; Disable debugger
(setf (getf key-args :debug) nil)

(apply (intern (string :clackup) :clack) app-file key-args)))
13 changes: 6 additions & 7 deletions src/handler/hunchentoot.lisp
Expand Up @@ -62,13 +62,12 @@
(let ((app (acceptor-app acceptor))
(env (acceptor-handle-request acceptor req))
(hunchentoot:*catch-errors-p* nil))
(handle-response
(if (acceptor-debug acceptor)
(funcall app env)
(handler-case (funcall app env)
(error (error)
(princ error *error-output*)
'(500 () ("Internal Server Error"))))))))
(if (acceptor-debug acceptor)
(handle-response (funcall app env))
(handler-case (handle-response (funcall app env))
(error (error)
(princ error *error-output*)
'(500 () ("Internal Server Error")))))))

(defmethod hunchentoot:process-connection :around ((acceptor clack-acceptor) socket)
(let ((flex:*substitution-char* #-(or abcl lispworks) #\Replacement_Character
Expand Down

0 comments on commit 121172c

Please sign in to comment.