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)