mercurial/debugcommands.py
changeset 37045 a708e1e4d7a8
parent 37044 d3a9036d9ae9
child 37047 fddcb51b5084
equal deleted inserted replaced
37044:d3a9036d9ae9 37045:a708e1e4d7a8
  2844             }
  2844             }
  2845 
  2845 
  2846         if ui.debugflag:
  2846         if ui.debugflag:
  2847             openerargs[r'loggingopts'][r'logdataapis'] = True
  2847             openerargs[r'loggingopts'][r'logdataapis'] = True
  2848 
  2848 
       
  2849         # Don't send default headers when in raw mode. This allows us to
       
  2850         # bypass most of the behavior of our URL handling code so we can
       
  2851         # have near complete control over what's sent on the wire.
       
  2852         if opts['peer'] == 'raw':
       
  2853             openerargs[r'sendaccept'] = False
       
  2854 
  2849         opener = urlmod.opener(ui, authinfo, **openerargs)
  2855         opener = urlmod.opener(ui, authinfo, **openerargs)
  2850 
  2856 
  2851         if opts['peer'] == 'raw':
  2857         if opts['peer'] == 'raw':
  2852             ui.write(_('using raw connection to peer\n'))
  2858             ui.write(_('using raw connection to peer\n'))
  2853             peer = None
  2859             peer = None