Js based redirecting template formatting

This commit is contained in:
Tamas Kocsis 2020-09-08 19:32:10 +02:00
parent 94765af0f3
commit 8dc5aee8aa
2 changed files with 15 additions and 2 deletions

View file

@ -338,7 +338,7 @@ def cmp(a, b):
return (a > b) - (a < b)
def encodeResponse(func):
def encodeResponse(func): # Encode returned data from utf8 to bytes
def wrapper(*args, **kwargs):
back = func(*args, **kwargs)
if "__next__" in dir(back):