Skip to content

Commit 40a37b3

Browse files
committed
Only format a proxy environment once
It was doing double formatting, which broke when passing environment variables with escaped strings (i.e {{var}}).
1 parent 6f61f85 commit 40a37b3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

jupyter_server_proxy/handlers.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -654,9 +654,7 @@ def _render_template(self, value):
654654
def _realize_rendered_template(self, attribute):
655655
"""Call any callables, then render any templated values."""
656656
if callable(attribute):
657-
attribute = self._render_template(
658-
call_with_asked_args(attribute, self.process_args)
659-
)
657+
attribute = call_with_asked_args(attribute, self.process_args)
660658
return self._render_template(attribute)
661659

662660
@web.authenticated

0 commit comments

Comments
 (0)