correct spelling error

This commit is contained in:
Mark McClain
2011-02-24 13:25:29 -05:00
parent 083077af84
commit a97e2a9fe4

View File

@@ -138,7 +138,7 @@ class Pecan(object):
except NonCanonicalPath, e:
if self.force_canonical and not _cfg(e.controller).get('accept_noncanonical', False):
if request.method == 'POST':
raise RuntimeError, "You have POSTed to a URL '%s' which requires a slash. Most browsers will not maintain POST data when redirected. Please update you code to POST to '%s/' or set force_canonical to False" % (request.routing_path, request.routing_path)
raise RuntimeError, "You have POSTed to a URL '%s' which requires a slash. Most browsers will not maintain POST data when redirected. Please update your code to POST to '%s/' or set force_canonical to False" % (request.routing_path, request.routing_path)
raise exc.HTTPFound(add_slash=True)
return e.controller, e.remainder