We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3959b1c commit ceded53Copy full SHA for ceded53
jupyter_rsession_proxy/__init__.py
@@ -5,6 +5,7 @@
5
import subprocess
6
import tempfile
7
from textwrap import dedent
8
+from urllib.parse import urlparse, urlunparse
9
10
11
def get_rstudio_executable(prog):
@@ -39,7 +40,8 @@ def rewrite_auth(response, request):
39
40
for header, v in response.headers.get_all():
41
if header == "Location" and v.startswith("/auth-sign-in"):
42
# Visit the correct page
- response.headers[header] = request.uri + v
43
+ u = urlparse(request.uri)
44
+ response.headers[header] = urlunparse(u._replace(path=u.path+v))
45
46
def setup_rserver():
47
def _get_env(port):
0 commit comments