bcci commited on
Commit
4ef70ad
·
verified ·
1 Parent(s): 0a79676

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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}"