HTTPFound more accurate than HTTPMovedPermanently.

(Just observed this in cc.engine, making observation here also while I'm at it :))
This commit is contained in:
Christopher Allan Webber 2011-04-26 15:46:56 -05:00
parent 5784c4e963
commit 1bb0fdf2f4

View File

@ -82,7 +82,7 @@ class MediaGoblinApp(object):
if request.GET: if request.GET:
new_path_info = '%s?%s' % ( new_path_info = '%s?%s' % (
new_path_info, urllib.urlencode(request.GET)) new_path_info, urllib.urlencode(request.GET))
redirect = exc.HTTPTemporaryRedirect(location=new_path_info) redirect = exc.HTTPFound(location=new_path_info)
return request.get_response(redirect)(environ, start_response) return request.get_response(redirect)(environ, start_response)
# Okay, no matches. 404 time! # Okay, no matches. 404 time!