diff options
| author | John Turner <jturner.usa@gmail.com> | 2025-09-26 01:30:47 -0400 |
|---|---|---|
| committer | John Turner <jturner.usa@gmail.com> | 2025-09-26 01:30:47 -0400 |
| commit | 2123cd7d9d671b3d0c56679d539eae51bce7a9d3 (patch) | |
| tree | 17cf6545824f370a6325fa6c2476a33c0d19a273 | |
| parent | 0e60b0ca511e905c1b82038a526aa760c02ea943 (diff) | |
| download | pypaste-2123cd7d9d671b3d0c56679d539eae51bce7a9d3.tar.gz | |
do not assume /paste is the endpoint
| -rw-r--r-- | pypaste/server/__init__.py | 2 | ||||
| -rwxr-xr-x | tests/test_server.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pypaste/server/__init__.py b/pypaste/server/__init__.py index 8b8a7f0..582d4f8 100644 --- a/pypaste/server/__init__.py +++ b/pypaste/server/__init__.py @@ -226,7 +226,7 @@ class App: log_error(f"failed to insert paste {key} to storage: {e}") return web.HTTPInternalServerError() - url = f"{self.config.site}/paste/{humanize(key)}" + url = f"{self.config.site}/{humanize(key)}" log_info( f"uploaded paste {key.data.hex()} with syntax {syntax} of size {len(data)} bytes: {url}" diff --git a/tests/test_server.py b/tests/test_server.py index 98cff4e..cd25069 100755 --- a/tests/test_server.py +++ b/tests/test_server.py @@ -46,7 +46,7 @@ async def main() -> int: "--socket", socket, "--site", - "http://dummy", + "http://dummy/paste", "--content-length-max-bytes", "200000", "--key-length", |
