/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: 2019-06-08 17:22:01 UTC
  • mfrom: (7320.1.1 fix-git-http)
  • Revision ID: breezy.the.bot@gmail.com-20190608172201-y5yz76s78yr076m4
Fix Git HTTP support.

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

Show diffs side-by-side

added added

removed removed

Lines of Context:
698
698
 
699
699
        response = self.transport.request(
700
700
            ('GET' if data is None else 'POST'),
 
701
            url,
701
702
            body=data,
702
703
            headers=headers, retries=8)
703
704
 
721
722
 
722
723
            def __init__(self, response):
723
724
                self._response = response
724
 
                self.status = response.code
 
725
                self.status = response.status
725
726
                self.content_type = response.getheader("Content-Type")
726
 
                self.redirect_location = response.geturl()
 
727
                self.redirect_location = response._actual.geturl()
727
728
 
728
729
            def readlines(self):
729
730
                return self._response.readlines()
730
731
 
731
732
            def close(self):
732
 
                self._response.close()
 
733
                pass
733
734
 
734
735
        return WrapResponse(response), read
735
736