Skip to content

Commit

Permalink
use display instead of pretty-print-json-string for the json reply to…
Browse files Browse the repository at this point in the history
… prevent the newline issue
  • Loading branch information
kaiwenho committed Aug 15, 2023
1 parent ab3761f commit 38f8614
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions medikanren2/neo/neo-server/neo-server.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

(define DEFAULT_PORT 8384)

(define NEO_SERVER_VERSION "1.21")
(define NEO_SERVER_VERSION "1.22")

;; Maximum number of results to be returned from *each individual* KP,
;; or from mediKanren itself.
Expand Down Expand Up @@ -278,7 +278,8 @@
(display SERVER_STRING out)
(display "\r\n" out)
(display "Content-Type: application/json\r\n\r\n" out)
(pretty-print-json-string (jsexpr->string jsexpr) out)]
(display (jsexpr->string jsexpr) out)
#;(pretty-print-json-string (jsexpr->string jsexpr) out)]
[`(xexpr ,respose-code ,xexpr)
(printf "sending HTML reply\n")
(display HTTP_VERSION_STRING out)
Expand Down

0 comments on commit 38f8614

Please sign in to comment.