summaryrefslogtreecommitdiff
path: root/pecan/core.py
diff options
context:
space:
mode:
authorMark McClain <mark.mcclain@shootq.com>2011-02-19 19:03:30 -0500
committerMark McClain <mark.mcclain@shootq.com>2011-02-19 19:03:30 -0500
commitfc8fc2939701b877ed75c7c9e0b70dcdb15f47eb (patch)
treea2bf48f09ca91655c6a6488a2ae8d4271d2cd878 /pecan/core.py
parent6d80dcf6ff6a0c2a541240ad8191e48a70abad35 (diff)
downloadpecan-fc8fc2939701b877ed75c7c9e0b70dcdb15f47eb.tar.gz
adding deco to indicate than an index does not have to be canonical
Diffstat (limited to 'pecan/core.py')
-rw-r--r--pecan/core.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pecan/core.py b/pecan/core.py
index b44077e..f023608 100644
--- a/pecan/core.py
+++ b/pecan/core.py
@@ -136,7 +136,7 @@ class Pecan(object):
node, remainder = lookup_controller(node, path)
return node, remainder
except NonCanonicalPath, e:
- if self.force_canonical:
+ if self.force_canonical and not _cfg(e.controller).get('accept_noncanonical', False):
raise exc.HTTPFound(add_slash=True)
return e.controller, e.remainder