diff options
| author | hodbn <hodbn@users.noreply.github.com> | 2020-03-25 14:51:09 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-25 07:51:09 -0500 |
| commit | 4e00ac7636671ebd37fa27eab22e3983f51dd28d (patch) | |
| tree | b706a5d631dfa5feef353821e8bcc1f3263f2fd7 /dummyserver | |
| parent | 8e22d0fff948fec2a7efa61b15f4fff86a5e6d7f (diff) | |
| download | urllib3-4e00ac7636671ebd37fa27eab22e3983f51dd28d.tar.gz | |
Test that ConnectionPool preserves path dot segments
Diffstat (limited to 'dummyserver')
| -rw-r--r-- | dummyserver/handlers.py | 2 |
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) |
