summaryrefslogtreecommitdiff
path: root/dummyserver/handlers.py
diff options
context:
space:
mode:
authorhodbn <hodbn@users.noreply.github.com>2020-03-25 14:51:09 +0200
committerGitHub <noreply@github.com>2020-03-25 07:51:09 -0500
commit4e00ac7636671ebd37fa27eab22e3983f51dd28d (patch)
treeb706a5d631dfa5feef353821e8bcc1f3263f2fd7 /dummyserver/handlers.py
parent8e22d0fff948fec2a7efa61b15f4fff86a5e6d7f (diff)
downloadurllib3-4e00ac7636671ebd37fa27eab22e3983f51dd28d.tar.gz
Test that ConnectionPool preserves path dot segments
Diffstat (limited to 'dummyserver/handlers.py')
-rw-r--r--dummyserver/handlers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/dummyserver/handlers.py b/dummyserver/handlers.py
index b751d83f..696dbab0 100644
--- a/dummyserver/handlers.py
+++ b/dummyserver/handlers.py
@@ -93,7 +93,7 @@ class TestingApp(RequestHandler):
if not path.startswith("/"):
path = urlsplit(path).path
- target = path[1:].replace("/", "_")
+ target = path[1:].split("/", 1)[0]
method = getattr(self, target, self.index)
resp = method(req)