~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/http/response.py

  • Committer: John Arbash Meinel
  • Date: 2006-10-13 06:36:44 UTC
  • mto: This revision was merged to the branch mainline in revision 2075.
  • Revision ID: john@arbash-meinel.com-20061013063644-89370e8650ab1cd7
Robert's comments: Refer to RFC2616 to explain how we handle missing Content-Type

Show diffs side-by-side

added added

removed removed

Lines of Context:
251
251
        try:
252
252
            content_type = headers['Content-Type']
253
253
        except KeyError:
254
 
            # We can't be multipart if there is no Content-Type header
 
254
            # When there is no content-type header we treat
 
255
            # the response as being of type 'application/octet-stream' as per
 
256
            # RFC2616 section 7.2.1.
 
257
            # Therefore it is obviously not multipart
 
258
            content_type = 'application/octet-stream'
255
259
            is_multipart = False
256
260
        else:
257
261
            is_multipart = _is_multipart(content_type)