mercurial/debugcommands.py
changeset 37047 fddcb51b5084
parent 37045 a708e1e4d7a8
child 37051 40206e227412
equal deleted inserted replaced
37046:1cfef5693203 37047:fddcb51b5084
  2968                                       line)
  2968                                       line)
  2969 
  2969 
  2970             url = path + httppath
  2970             url = path + httppath
  2971             req = urlmod.urlreq.request(pycompat.strurl(url), body, headers)
  2971             req = urlmod.urlreq.request(pycompat.strurl(url), body, headers)
  2972 
  2972 
       
  2973             # urllib.Request insists on using has_data() as a proxy for
       
  2974             # determining the request method. Override that to use our
       
  2975             # explicitly requested method.
       
  2976             req.get_method = lambda: method
       
  2977 
  2973             try:
  2978             try:
  2974                 opener.open(req).read()
  2979                 opener.open(req).read()
  2975             except util.urlerr.urlerror as e:
  2980             except util.urlerr.urlerror as e:
  2976                 e.read()
  2981                 e.read()
  2977 
  2982