imsd/tests/Sip
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jorijn van der Graaf 89048c3602
sip: a header is read from the header section only
Header and Headers iterated every line of a message, body included, so a
body line that spells a header name — a text someone typed, or the UCS-2
bytes of one — would be read as that header: a second Via for a final to
echo, a P-Asserted-Identity that CallerId takes for the sender. ForEachLine now ends
at the first empty line after a line of text (RFC 3261 7: the headers
end at the empty line) and skips empty lines before it (a keepalive's
CRLFs ahead of a message), so every reader of a header reads the header
section. Pinned in tests/Sip:
a body Via is no Via, a name that occurs only in the body is absent,
leading CRLFs are skipped. With these the suite has more than 77 checks,
so it returns 1 for any failure and no longer their count: `crafter-build
test` takes an exit status of 77 for a skipped suite.
2026-11-19 16:43:15 +01:00
..
main.cpp sip: a header is read from the header section only 2026-11-19 16:43:15 +01:00