~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_http.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-10-26 07:02:31 UTC
  • mfrom: (5514.1.1 665100-content-type)
  • Revision ID: pqm@pqm.ubuntu.com-20101026070231-xn5fwikevh6q40qu
(vila) Correctly set the Content-Type header when POSTing http requests.
 (Vincent Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
507
507
        self.assertTrue(
508
508
            server.received_bytes.startswith('POST /.bzr/smart HTTP/1.'))
509
509
        self.assertTrue('content-length: 19\r' in server.received_bytes.lower())
 
510
        self.assertTrue('content-type: application/octet-stream\r'
 
511
                        in server.received_bytes.lower())
510
512
        # The transport should not be assuming that the server can accept
511
513
        # chunked encoding the first time it connects, because HTTP/1.1, so we
512
514
        # check for the literal string.