Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Always include 'query' as an allowed language
  • Loading branch information
rnewson committed Oct 18, 2019
1 parent 5161e54 commit 52fbbdfd92de2e277ecfebc10a641483c8d5b2ef
Showing 1 changed file with 2 additions and 1 deletion.
@@ -527,7 +527,8 @@ prune_worker_table(State) ->
allowed_languages() ->
Config = couch_proc_manager:get_servers_from_env("COUCHDB_QUERY_SERVER_") ++
couch_proc_manager:get_servers_from_env("COUCHDB_NATIVE_QUERY_SERVER_"),
[list_to_binary(string:to_lower(Lang)) || {Lang, _Cmd} <- Config].
Allowed = [list_to_binary(string:to_lower(Lang)) || {Lang, _Cmd} <- Config],
[<<"query">> | Allowed].

config(Key, Default) ->
config:get("ken", Key, Default).

0 comments on commit 52fbbdf

Please sign in to comment.