Skip to content

'UrlDispatcher' object has no attribute 'add_options' #3062

Closed
@samuelcolvin

Description

with

web.route(METH_OPTIONS, '/foo/', foo, name='foo'),

def register(self, router):
if self.method in hdrs.METH_ALL:
reg = getattr(router, 'add_'+self.method.lower())
reg(self.path, self.handler, **self.kwargs)
else:
router.add_route(self.method, self.path, self.handler,
**self.kwargs)

OPTIONS is included in METH_ALL, however UrlDispatcher has no add_options method.

I believe this is a bug.

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions