From 8c53cf7b02d81568c11e46057b1d64a64f17d708 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Pavl=C3=A1sek?= Date: Fri, 9 Apr 2021 10:38:32 +0200 Subject: [PATCH] add_route can accept also *args --- src/nginx/config/builder/baseplugins.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nginx/config/builder/baseplugins.py b/src/nginx/config/builder/baseplugins.py index 0fd79b3..580e00f 100644 --- a/src/nginx/config/builder/baseplugins.py +++ b/src/nginx/config/builder/baseplugins.py @@ -129,8 +129,8 @@ class Routable(Navigable): """ - def add_route(self, path, **kwargs): - loc = Location(path, **kwargs) + def add_route(self, path, *args, **kwargs): + loc = Location(path, *args, **kwargs) self.add_child(loc) self.chobj(loc)