Make serving static files a bit more efficient

This commit is contained in:
Florian Festi 2017-05-07 20:29:33 +02:00
parent f48fc32cf0
commit f08b19e54e
1 changed files with 1 additions and 1 deletions

View File

@ -328,7 +328,7 @@ Create boxes and more with a laser cutter!
start_response("200 OK", [('Content-type', "%s; charset=%s" % (type_, encoding))])
f = open(path, 'rb')
return f
return environ['wsgi.file_wrapper'](f, 512*1024)
def serve(self, environ, start_response):