To remove the other lines above:
if key in request.REQUEST:
  params[key] = request.REQUEST[key]
  if '/' in params[key]: ...