Skip to content
This repository was archived by the owner on Mar 8, 2019. It is now read-only.

Commit c168354

Browse files
committed
Provide run method for Bottle
1 parent 2209e12 commit c168354

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

wsgi_static_middleware.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ def __call__(self, env, start_response):
102102
return self.handle(env, start_response, relative_file_path)
103103
return self.app(env, start_response)
104104

105+
def run(self, *args, **kwargs):
106+
# For Bottle applications.
107+
return self.app.run(*args, **kwargs)
108+
105109
def handle(self, env, start_response, filename):
106110
abs_file_path = search_file(filename, self.static_dirs)
107111
if abs_file_path:

0 commit comments

Comments
 (0)