@@ -70,7 +70,7 @@ async def sendfile(res, req, filename):
7070
7171 def send_headers (res ):
7272 res .write_status (status )
73- # tells the broswer the last modified date
73+ # tells the browser the last modified date
7474 res .write_header (b"Last-Modified" , last_modified )
7575
7676 # tells the browser that we support range
@@ -147,7 +147,7 @@ def middleware(*functions):
147147
148148 # we use Optional data=None at the end so you can use and middleware inside a middleware
149149 def optimized_middleware_route (res , req , data = None ):
150- # cicle to all middlewares
150+ # circle to all middlewares
151151 for function in syncs :
152152 # call middlewares
153153 data = function (res , req , data )
@@ -156,7 +156,7 @@ def optimized_middleware_route(res, req, data=None):
156156 return
157157
158158 async def wrapper (res , req , data ):
159- # cicle to all middlewares
159+ # circle to all middlewares
160160 for function in asyncs :
161161 # detect if is coroutine or not
162162 if inspect .iscoroutinefunction (function ):
@@ -182,7 +182,7 @@ async def wrapper(res, req, data):
182182def sync_middleware (* functions ):
183183 # we use Optional data=None at the end so you can use and middleware inside a middleware
184184 def middleware_route (res , req , data = None ):
185- # cicle to all middlewares
185+ # circle to all middlewares
186186 for function in functions :
187187 # call middlewares
188188 data = function (res , req , data )
@@ -198,7 +198,7 @@ def async_middleware(*functions):
198198 # we use Optional data=None at the end so you can use and middleware inside a middleware
199199 async def middleware_route (res , req , data = None ):
200200 some_async_as_run = False
201- # cicle to all middlewares
201+ # circle to all middlewares
202202 for function in functions :
203203 # detect if is coroutine or not
204204 if inspect .iscoroutinefunction (function ):
0 commit comments