~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/http/_urllib.py

Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
        opener = urllib2.build_opener(auth_handler)
84
84
        request = Request(url)
85
85
        request.method = method
 
86
        request.add_header('Pragma', 'no-cache')
 
87
        request.add_header('Cache-control', 'max-age=0')
86
88
        request.add_header('User-Agent', 'bzr/%s (urllib)' % bzrlib.__version__)
87
89
        if ranges:
88
90
            assert len(ranges) == 1