equal
deleted
inserted
replaced
467 def opener(ui, authinfo=None): |
467 def opener(ui, authinfo=None): |
468 ''' |
468 ''' |
469 construct an opener suitable for urllib2 |
469 construct an opener suitable for urllib2 |
470 authinfo will be added to the password manager |
470 authinfo will be added to the password manager |
471 ''' |
471 ''' |
|
472 # experimental config: ui.usehttp2 |
472 if ui.configbool('ui', 'usehttp2', False): |
473 if ui.configbool('ui', 'usehttp2', False): |
473 handlers = [httpconnectionmod.http2handler(ui, passwordmgr(ui))] |
474 handlers = [httpconnectionmod.http2handler(ui, passwordmgr(ui))] |
474 else: |
475 else: |
475 handlers = [httphandler()] |
476 handlers = [httphandler()] |
476 if has_https: |
477 if has_https: |