forked from bortzmeyer/Web-LangTag
an change the HTTP method when redirecting
This commit is contained in:
parent
1d966259bc
commit
dce4cba60f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user