/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-14 13:51:31 UTC
  • mfrom: (7140.1.1 revert-http-redirect)
  • Revision ID: breezy.the.bot@gmail.com-20181014135131-u436mzudbf69nf2n
Rollback https://code.launchpad.net/~jelmer/brz/python3-git-fix-http/+merge/356238

Merged from https://code.launchpad.net/~jelmer/brz/revert-http-redirect/+merge/356684

Show diffs side-by-side

added added

removed removed

Lines of Context:
636
636
        :param data: Request data.
637
637
        :param allow_compression: Allow GZipped communication.
638
638
        :return: Tuple (`response`, `read`), where response is an `urllib3`
639
 
            response object with additional `content_type` property,
640
 
            and `read` is a consumable read method for the response data.
 
639
            response object with additional `content_type` and
 
640
            `redirect_location` properties, and `read` is a consumable read
 
641
            method for the response data.
641
642
        """
642
643
        from breezy.transport.http._urllib2_wrappers import Request
643
644
        headers['User-agent'] = user_agent_for_github()
677
678
                self._response = response
678
679
                self.status = response.code
679
680
                self.content_type = response.getheader("Content-Type")
 
681
                self.redirect_location = response.geturl()
680
682
 
681
683
            def close(self):
682
684
                self._response.close()