/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

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

  • Committer: John Arbash Meinel
  • Date: 2006-10-13 07:22:23 UTC
  • mfrom: (2076 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2077.
  • Revision ID: john@arbash-meinel.com-20061013072223-9d1320456e7df776
[merge] bzr.dev 2076

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
 
            raise errors.InvalidHttpContentType(url, '',
255
 
                msg='Missing Content-Type')
 
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'
 
259
            is_multipart = False
 
260
        else:
 
261
            is_multipart = _is_multipart(content_type)
256
262
 
257
 
        if _is_multipart(content_type):
 
263
        if is_multipart:
258
264
            # Full fledged multipart response
259
265
            return HttpMultipartRangeResponse(url, content_type, data)
260
266
        else: