/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: Jelmer Vernooij
  • Date: 2018-03-24 10:24:48 UTC
  • mfrom: (6910 work)
  • mto: This revision was merged to the branch mainline in revision 6913.
  • Revision ID: jelmer@jelmer.uk-20180324102448-132p8l8t5ogdzhhu
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
669
669
    def http_request(self, request):
670
670
        """Common headers setting"""
671
671
 
672
 
        request.headers.update(self._default_headers.copy())
 
672
        for name, value in self._default_headers.items():
 
673
            if name not in request.headers:
 
674
                request.headers[name] = value
673
675
        # FIXME: We may have to add the Content-Length header if
674
676
        # we have data to send.
675
677
        return request