Fix encoding error, files-ls, adding directory #13
|
@ -48,8 +48,10 @@
|
||||||
(let* ((result (cond ((stringp body) body)
|
(let* ((result (cond ((stringp body) body)
|
||||||
((vectorp body) (flexi-streams:octets-to-string body))))
|
((vectorp body) (flexi-streams:octets-to-string body))))
|
||||||
(result (if (search "application/json" (cdr (assoc :content-type headers)))
|
(result (if (search "application/json" (cdr (assoc :content-type headers)))
|
||||||
(unless (empty-string-p result)
|
(mapcar (lambda (line)
|
||||||
(simplify (yason:parse result :object-as :alist)))
|
(simplify (yason:parse line :object-as :alist)))
|
||||||
|
(delete "" (uiop:split-string result :separator (string #\newline))
|
||||||
|
:test 'string=))
|
||||||
result)))
|
result)))
|
||||||
(if (eql 200 status-code)
|
(if (eql 200 status-code)
|
||||||
result
|
result
|
||||||
|
|
Ŝarĝante…
Reference in New Issue