mercurial/hgweb/webcommands.py
changeset 38215 f715faeaceee
parent 38214 2aa0217bb655
child 38482 5faaa31a6082
equal deleted inserted replaced
38214:2aa0217bb655 38215:f715faeaceee
  1160 
  1160 
  1161     No template is used for this handler. Raw, binary content is generated.
  1161     No template is used for this handler. Raw, binary content is generated.
  1162     """
  1162     """
  1163 
  1163 
  1164     type_ = web.req.qsparams.get('type')
  1164     type_ = web.req.qsparams.get('type')
  1165     allowed = web.configlist("web", "allow_archive")
  1165     allowed = web.configlist("web", "allow-archive")
  1166     key = web.req.qsparams['node']
  1166     key = web.req.qsparams['node']
  1167 
  1167 
  1168     if type_ not in webutil.archivespecs:
  1168     if type_ not in webutil.archivespecs:
  1169         msg = 'Unsupported archive type: %s' % type_
  1169         msg = 'Unsupported archive type: %s' % type_
  1170         raise ErrorResponse(HTTP_NOT_FOUND, msg)
  1170         raise ErrorResponse(HTTP_NOT_FOUND, msg)