~bzr-pqm/bzr/bzr.dev

Viewing all changes in revision 3535.1.2.

  • Committer: Adrian Wilkins
  • Date: 2008-07-11 14:30:35 UTC
  • mto: (3537.1.1 247585-IIS-boundary-2)
  • mto: This revision was merged to the branch mainline in revision 3539.
  • Revision ID: adrian.wilkins@gmail.com-20080711143035-4cqrbgtj3dg7drg8
Fix ability to use IIS as a dumb HTTP server.

Fix quoted boundary lines bugs exposed by tests in previous revision.
IIS uses a fixed value for boundary lines, quoted inside angle brackets.

RFC 2046 prohibits use of angles in boundary lines, but IIS uses them
Python implements RFC 822 unquoting badly and considers angles to be quotes
Parameters in HTTP response headers get RFC 822 unquoted

Hence all multi-part responses from IIS run foul of boundary line integrity
checking.

see
https://bugs.launchpad.net/bzr/+bug/247585

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: