From 6a4053f7e1bbf4cb154b31703672dd2168362b50 Mon Sep 17 00:00:00 2001 From: CaffeineFueled Date: Fri, 17 Oct 2025 23:22:08 +0200 Subject: [PATCH] FIX the processing of the new linedump response format #3 --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 77b1110..55f29c9 100644 --- a/main.py +++ b/main.py @@ -30,9 +30,9 @@ async def proxy_paste(paste_id: str): headers={"Content-Type": "text/plain"} ) dump_response.raise_for_status() - - # linedump.com returns the full URL in the response body - dump_url = dump_response.text.strip() + + # linedump.com returns the full URL in the first line of the response + dump_url = dump_response.text.strip().splitlines()[0] # Redirect to the dump URL return RedirectResponse(url=dump_url, status_code=302)