Your Name há 3 anos atrás
pai
commit
0135e75751
1 ficheiros alterados com 3 adições e 3 exclusões
  1. 3 3
      step_question/apis/main.py

+ 3 - 3
step_question/apis/main.py

@@ -49,10 +49,10 @@ async def submit(request: Request):
 #    fr.close()
 #    response = RedirectResponse(url='/a1/index_complete.html')
     lines="""<html><body>
-    <script>  window.location.replace("/a1/index_complete.html?par={0}");   </script>
+    <script>   document.location = 'index_complete.html?par={0}';   </script>
     </body></html>"""
-    return RedirectResponse(url='/a1/index_complete.html')
-#    return HTMLResponse(content=lines.format(str(random.randint(100000,999999))), status_code=200)
+#    return RedirectResponse(url='/a1/index_complete.html')
+    return HTMLResponse(content=lines.format(str(random.randint(100000,999999))), status_code=200)
 
 #    return result