devout: strip newlines from client terms

this is just to make testing with socat easier
main
Daniel Barlow 2024-04-24 18:33:02 +01:00
parent 6bee2f67ac
commit 18335b95e3
1 changed files with 1 additions and 1 deletions

View File

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