~bendersteed/wikisophy

2a4ee7629a43473381c31229c6ae5414754dce0a — Dimakakos Dimos 4 years ago 8b7bbc3
Fix: check on car of path since path is a always a non-empty list
1 files changed, 1 insertions(+), 1 deletions(-)

M server.lisp
M server.lisp => server.lisp +1 -1
@@ 6,7 6,7 @@ philosophy in json format."
  (setf (hunchentoot:content-type*) "application/json")
  (setf (hunchentoot:header-out "Access-Control-Allow-Origin") "*")
  (let ((path (get-path query)))
    (if path
    (if (car path)
	(cl-json:encode-json-to-string path)
	(progn
	  (insert-path (reverse (wikisophy.crawler:path-to-philosophy query)))