HTTPFound more accurate than HTTPMovedPermanently.
authorChristopher Allan Webber <cwebber@dustycloud.org>
Tue, 26 Apr 2011 20:46:56 +0000 (15:46 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Tue, 26 Apr 2011 20:46:56 +0000 (15:46 -0500)
(Just observed this in cc.engine, making observation here also while I'm at it :))

mediagoblin/app.py

index 3ea405e9b38d75c78bc81547e7858b71ba03da9a..59b943ddbcfcd475b83f18b03df72f31363d1d32 100644 (file)
@@ -82,7 +82,7 @@ class MediaGoblinApp(object):
                 if request.GET:
                     new_path_info = '%s?%s' % (
                         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)
 
             # Okay, no matches.  404 time!