FIX the processing of the new linedump response format #3
This commit is contained in:
parent
028a41d86a
commit
6a4053f7e1
1 changed files with 3 additions and 3 deletions
4
main.py
4
main.py
|
|
@ -31,8 +31,8 @@ async def proxy_paste(paste_id: str):
|
||||||
)
|
)
|
||||||
dump_response.raise_for_status()
|
dump_response.raise_for_status()
|
||||||
|
|
||||||
# linedump.com returns the full URL in the response body
|
# linedump.com returns the full URL in the first line of the response
|
||||||
dump_url = dump_response.text.strip()
|
dump_url = dump_response.text.strip().splitlines()[0]
|
||||||
|
|
||||||
# Redirect to the dump URL
|
# Redirect to the dump URL
|
||||||
return RedirectResponse(url=dump_url, status_code=302)
|
return RedirectResponse(url=dump_url, status_code=302)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue