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

+ 1 - 2
step_question/apis/main.py

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