Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
|
@@ -8,13 +8,13 @@ app = FastAPI()
|
|
| 8 |
async def echo(request: Request) -> Dict[str, Any]:
|
| 9 |
body_bytes = await request.body()
|
| 10 |
|
| 11 |
-
print("\n" + "="*30 + " π NEW REQUEST " + "="*30)
|
| 12 |
-
print("πΉ Method:", request.method)
|
| 13 |
-
print("π URL:", str(request.url))
|
| 14 |
-
print("π Headers:", dict(request.headers))
|
| 15 |
-
print("\nπ¦ Raw body (bytes):")
|
| 16 |
-
print(body_bytes)
|
| 17 |
-
print("\nπ
|
| 18 |
print(body_bytes.decode("utf-8", errors="ignore"))
|
| 19 |
print("="*75)
|
| 20 |
|
|
|
|
| 8 |
async def echo(request: Request) -> Dict[str, Any]:
|
| 9 |
body_bytes = await request.body()
|
| 10 |
|
| 11 |
+
# print("\n" + "="*30 + " π NEW REQUEST " + "="*30)
|
| 12 |
+
# print("πΉ Method:", request.method)
|
| 13 |
+
# print("π URL:", str(request.url))
|
| 14 |
+
# print("π Headers:", dict(request.headers))
|
| 15 |
+
# print("\nπ¦ Raw body (bytes):")
|
| 16 |
+
# print(body_bytes)
|
| 17 |
+
print("\nπ Request body:")
|
| 18 |
print(body_bytes.decode("utf-8", errors="ignore"))
|
| 19 |
print("="*75)
|
| 20 |
|