liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 18335b95e3a881e32a396c310deb82784e1059f8
parent 6bee2f67acd22cec8147c8a1577b1d132453974e
Author: Daniel Barlow <dan@telent.net>
Date:   Wed, 24 Apr 2024 18:33:02 +0100

devout: strip newlines from client terms

this is just to make testing with socat easier

Diffstat:
Mpkgs/devout/devout.fnl | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgs/devout/devout.fnl b/pkgs/devout/devout.fnl @@ -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]