/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/transport/http/_urllib2_wrappers.py

  • Committer: Martin
  • Date: 2017-11-12 13:53:51 UTC
  • mto: This revision was merged to the branch mainline in revision 6810.
  • Revision ID: gzlist@googlemail.com-20171112135351-uyr1ncw7visg62c2
Apply 2to3 ws_comma fixer

Show diffs side-by-side

added added

removed removed

Lines of Context:
267
267
    """
268
268
 
269
269
    # Some responses have bodies in which we have no interest
270
 
    _body_ignored_responses = [301,302, 303, 307, 400, 401, 403, 404, 501]
 
270
    _body_ignored_responses = [301, 302, 303, 307, 400, 401, 403, 404, 501]
271
271
 
272
272
    # in finish() below, we may have to discard several MB in the worst
273
273
    # case. To avoid buffering that much, we read and discard by chunks
784
784
            if 'http' in debug.debug_flags:
785
785
                trace.mutter('> %s %s' % (method, url))
786
786
                hdrs = []
787
 
                for k,v in headers.items():
 
787
                for k, v in headers.items():
788
788
                    # People are often told to paste -Dhttp output to help
789
789
                    # debug. Don't compromise credentials.
790
790
                    if k in ('Authorization', 'Proxy-Authorization'):
945
945
        # if we want to be sure, we MUST follow them.
946
946
 
947
947
        if code in (301, 302, 303, 307):
948
 
            return Request(req.get_method(),newurl,
 
948
            return Request(req.get_method(), newurl,
949
949
                           headers = req.headers,
950
950
                           origin_req_host = req.get_origin_req_host(),
951
951
                           unverifiable = True,