an change the HTTP method when redirecting

This commit is contained in:
Stephane Bortzmeyer 2023-08-02 18:43:06 +02:00
parent 1d966259bc
commit dce4cba60f

View File

@ -83,7 +83,7 @@ def application(environ, start_response):
doc, tag, text = Doc().tagtext()
title = "Result for %s" % term
if mytuple is not None:
status = "308 Redirect"
status = "307 Redirect"
url = "%s/%s/%s.html" % (REDIRECTION_URL, form["what"], mytuple[0])
headers.append(("Location", url))
msg = "Redirect to %s\r\n" % (url)