From ce358972c9722610d10d3818a353adb702127da1 Mon Sep 17 00:00:00 2001 From: Freddie Wu Date: Tue, 9 Aug 2022 23:10:08 +0800 Subject: [PATCH] Fix whitespace in response body --- jsonrestapi.q | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jsonrestapi.q b/jsonrestapi.q index b549fc6..b8583b8 100644 --- a/jsonrestapi.q +++ b/jsonrestapi.q @@ -61,7 +61,7 @@ serve:{[path;f] \d .post // Create a POST request dictionary from the dictionary passed to .z.pp -request:{s:" " vs x 0;`url`headers`body!(((x[1]`Host),"/",s 0);(!).(lower key@;value)@\:x 1;.j.k raze 1_s)} +request:{s:" " vs x 0;`url`headers`body!(((x[1]`Host),"/",s 0);(!).(lower key@;value)@\:x 1;.j.k " " sv 1_s)} // At the start, there are no assigned POST endpoints endpoints:()!()