/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/remote.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:
629
629
        :param data: Request data.
630
630
        :param allow_compression: Allow GZipped communication.
631
631
        :return: Tuple (`response`, `read`), where response is an `urllib3`
632
 
            response object with additional `content_type` and
633
 
            `redirect_location` properties, and `read` is a consumable read
634
 
            method for the response data.
 
632
            response object with additional `content_type` property,
 
633
            and `read` is a consumable read method for the response data.
635
634
        """
636
635
        from breezy.transport.http._urllib2_wrappers import Request
637
636
        headers['User-agent'] = user_agent_for_github()
671
670
                self._response = response
672
671
                self.status = response.code
673
672
                self.content_type = response.getheader("Content-Type")
674
 
                self.redirect_location = response.geturl()
675
673
 
676
674
            def close(self):
677
675
                self._response.close()