Skip to content

Commit 7f4918d

Browse files
committed
Merge branch 'main' into native-proxy
2 parents 9ad5c25 + b0c7feb commit 7f4918d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

jupyter_server_proxy/config.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ def _default_path_info(self):
8181
class ServerProcess(Configurable):
8282
name = Unicode(help="Name of the server").tag(config=True)
8383

84-
command = List(
85-
Unicode(),
84+
command = Union(
85+
[List(Unicode()), Callable()],
8686
help="""
8787
An optional list of strings that should be the full command to be executed.
8888
The optional template arguments ``{port}``, ``{unix_socket}`` and ``{base_url}``
@@ -197,8 +197,8 @@ def _default_launcher_entry(self):
197197
""",
198198
).tag(config=True)
199199

200-
request_headers_override = Dict(
201-
Unicode(),
200+
request_headers_override = Union(
201+
[Dict(Unicode()), Callable()],
202202
default_value={},
203203
help="""
204204
A dictionary of additional HTTP headers for the proxy request. As with

0 commit comments

Comments
 (0)