marrow / WebCore

WebCore, the super tiny and blazingly fast modular Python web nanoframework.
MIT License
94 stars 10 forks source link

Dispatch fails to halt if endpoint not found. #160

Closed amcgregor closed 8 years ago

amcgregor commented 8 years ago

After dispatch is exhausted if the object we started with is the object we ended up with, but wasn't an executable endpoint, dispatch needs to exit. Currently it does not, triggering an infinite loop.

Simple test case:

class Root:
    def __init__(self, context):
        self._ctx = context

Then GET /test and watch the infinite recursion.

amcgregor commented 8 years ago

Confirmed by user as fixed.