-
Committer:
Colin Watson
-
Date:
2021-01-18 11:27:41 UTC
-
Revision ID:
cjwatson@canonical.com-20210118112741-hv1jp45p4zd8i8l3
Normalize line breaks in text fields marshalled from a request.
multipart/form-data encoding (now used by
lazr.restful.testing.webservice.WebServiceCaller for named POST requests)
requires line breaks to be encoded as CRLF. This caused a discrepancy in
Launchpad's lib/lp/code/stories/webservice/xx-branchmergeproposal.txt test,
and it seems reasonable to normalize this in the specific case of text
fields. Convert any line breaks to Unix-style LF there.