Skip to content

Commit f8ce7d9

Browse files
committed
Set context_path properly
1 parent 12238de commit f8ce7d9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

jupyter_server_proxy/handlers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ def _build_proxy_request(self, port, proxied_path, body):
167167
# Some applications check X-Forwarded-Context and X-ProxyContextPath
168168
# headers to see if and where they are being proxied from.
169169
if not self.absolute_url:
170+
context_path = self._get_context_path(port)
170171
headers['X-Forwarded-Context'] = context_path
171172
headers['X-ProxyContextPath'] = context_path
172173

0 commit comments

Comments
 (0)