Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -73,7 +73,7 @@ async def get_text_get(request: Request, url: str):
|
|
73 |
"""Handles GET requests to /read/{url}, returning Markdown content."""
|
74 |
try:
|
75 |
full_url = str(request.url)
|
76 |
-
full_url = full_url.split("/read/")[1]
|
77 |
|
78 |
if not full_url.startswith(('http://', 'https://')):
|
79 |
full_url = f"http://{full_url}"
|
|
|
73 |
"""Handles GET requests to /read/{url}, returning Markdown content."""
|
74 |
try:
|
75 |
full_url = str(request.url)
|
76 |
+
full_url = full_url.split("/read/text/")[1]
|
77 |
|
78 |
if not full_url.startswith(('http://', 'https://')):
|
79 |
full_url = f"http://{full_url}"
|