Skip to content

Commit 25e4172

Browse files
committed
Slash encoding for http+unix URI.
1 parent c8bddfe commit 25e4172

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

notebook/notebookapp.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1536,7 +1536,10 @@ def connection_url(self):
15361536
return self._tcp_url(ip)
15371537

15381538
def _unix_sock_url(self):
1539-
return 'http+unix://%s/%s' % (self.sock, self.base_url)
1539+
return 'http+unix://%s/%s' % (
1540+
self.sock.replace('/', '%2F'),
1541+
self.base_url
1542+
)
15401543

15411544
def _tcp_url(self, ip):
15421545
proto = 'https' if self.certfile else 'http'

0 commit comments

Comments
 (0)