git » chasquid » commit 6000d07

test: Test multiline headers in hook output

author Alberto Bertogli
2019-12-01 20:38:50 UTC
committer Alberto Bertogli
2019-12-01 20:38:50 UTC
parent 45a294403d74b0c2591edf6e90699f1c63c28e1d

test: Test multiline headers in hook output

Hook output is checked to see if it looks like a header, which includes
the possibility of multi-line headers.

This patch extends the tests to include a multi-line header, to prevent
accidental regressions.

test/t-10-hooks/config/hooks/post-data.good +2 -0

diff --git a/test/t-10-hooks/config/hooks/post-data.good b/test/t-10-hooks/config/hooks/post-data.good
index 0bc7b7b..0fb06ac 100755
--- a/test/t-10-hooks/config/hooks/post-data.good
+++ b/test/t-10-hooks/config/hooks/post-data.good
@@ -16,4 +16,6 @@ if [ "$RCPT_TO" == "permanent@testserver" ]; then
 fi
 
 echo "X-Post-Data: success"
+echo "X-Post-Data-Multiline: multiline"
+echo "  header for testing."