~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-07-18 20:27:50 UTC
  • mto: This revision was merged to the branch mainline in revision 1869.
  • Revision ID: john@arbash-meinel.com-20060718202750-0ecae2405c7a7b55
code cleanups from Martin Pool.

Show diffs side-by-side

added added

removed removed

Lines of Context:
247
247
            content_type = headers['Content-Type']
248
248
        except KeyError:
249
249
            raise errors.InvalidHttpContentType(url, '',
250
 
                msg = 'Missing Content-Type')
 
250
                msg='Missing Content-Type')
251
251
 
252
252
        if _is_multipart(content_type):
253
253
            # Full fledged multipart response
273
273
    # TODO: jam 20060713 Properly handle redirects (302 Found, etc)
274
274
    #       The '_get' code says to follow redirects, we probably 
275
275
    #       should actually handle the return values
276
 
 
277
 
    raise errors.InvalidHttpResponse(url, "Unknown response code %s" % (code,))
 
276
    else:
 
277
        raise errors.InvalidHttpResponse(url, "Unknown response code %s" 
 
278
                                              % (code,))
278
279