/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 breezy/git/__init__.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-10-13 18:50:45 UTC
  • mfrom: (7131.5.1 python3-git-fix-http)
  • Revision ID: breezy.the.bot@gmail.com-20181013185045-01jaf689rdyqj29q
Remove unnecessary redirect handling for git.

Merged from https://code.launchpad.net/~jelmer/brz/python3-git-fix-http/+merge/356238

Show diffs side-by-side

added added

removed removed

Lines of Context:
164
164
        if resp.code in (404, 405):
165
165
            raise bzr_errors.NotBranchError(transport.base)
166
166
        headers = resp.headers
167
 
        ct = headers.getheader("Content-Type")
 
167
        ct = headers.get("Content-Type")
168
168
        if ct is None:
169
169
            raise bzr_errors.NotBranchError(transport.base)
170
170
        if ct.startswith("application/x-git"):