marcmaxmeister commited on
Commit
39a4d8d
·
verified ·
1 Parent(s): 4730456

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -26,7 +26,6 @@ async def root():
26
  async def pass_docs_html():
27
  # Use httpx to make an asynchronous GET request to the private API
28
  try:
29
- print('params', private_api_url)
30
  async with httpx.AsyncClient(timeout=60.0) as client:
31
  response = await client.get(f"{api_url}/docs/", headers=headers)
32
  response.raise_for_status() # Raise an exception for 4xx/5xx responses
@@ -52,6 +51,7 @@ async def proxy_request(request: Request):
52
 
53
  # Use httpx to make an asynchronous GET request to the private API
54
  try:
 
55
  async with httpx.AsyncClient(timeout=60.0) as client:
56
  response = await client.get(private_api_url, headers=headers)
57
  response.raise_for_status() # Raise an exception for 4xx/5xx responses
 
26
  async def pass_docs_html():
27
  # Use httpx to make an asynchronous GET request to the private API
28
  try:
 
29
  async with httpx.AsyncClient(timeout=60.0) as client:
30
  response = await client.get(f"{api_url}/docs/", headers=headers)
31
  response.raise_for_status() # Raise an exception for 4xx/5xx responses
 
51
 
52
  # Use httpx to make an asynchronous GET request to the private API
53
  try:
54
+ print('params', private_api_url)
55
  async with httpx.AsyncClient(timeout=60.0) as client:
56
  response = await client.get(private_api_url, headers=headers)
57
  response.raise_for_status() # Raise an exception for 4xx/5xx responses