~cjwatson/lazr.restful/text-field-normalize-crlf

Viewing all changes in revision 276.

  • 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.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: