devout: strip newlines from client terms

this is just to make testing with socat easier
This commit is contained in:
Daniel Barlow 2024-04-24 18:33:02 +01:00
parent 6bee2f67ac
commit 18335b95e3

View file

@ -86,7 +86,7 @@
(fn parse-terms [str] (fn parse-terms [str]
(print :terms str) (print :terms str)
(collect [n (string.gmatch str "([^ ]+)")] (collect [n (string.gmatch (str:gsub "\n+$" "") "([^ ]+)")]
(string.match n "(.-)=(.+)"))) (string.match n "(.-)=(.+)")))
(fn handle-client [db client] (fn handle-client [db client]