Jared 2 years ago
parent
commit
fba6f54821
1 changed files with 4 additions and 2 deletions
  1. 4 2
      test1/main.py

+ 4 - 2
test1/main.py

@@ -21,9 +21,11 @@ class q_req(BaseModel):
 
 @app.post("/postform1")
 async def postform1(request: Request):
-    js=request.json()
+    js= await request.json()
     print(js)
-    return await request.json()
+    print(str(js))
+    return js
+#    return await request.json()
 
 @app.get("/")
 async def root():