Merge pull request #1096 from grez911/master
Added explanation of convertion actionWrapper response to list
This commit is contained in:
commit
8fdfba97d9
1 changed files with 2 additions and 2 deletions
|
@ -282,8 +282,8 @@ class UiRequest(object):
|
|||
return False
|
||||
|
||||
self.sendHeader(extra_headers=extra_headers[:])
|
||||
return iter([self.renderWrapper(site, path, inner_path, title, extra_headers)])
|
||||
# Dont know why wrapping with iter necessary, but without it around 100x slower
|
||||
return [self.renderWrapper(site, path, inner_path, title, extra_headers)]
|
||||
# Make response be sent at once (see https://github.com/HelloZeroNet/ZeroNet/issues/1092)
|
||||
|
||||
else: # Bad url
|
||||
return False
|
||||
|
|
Loading…
Reference in a new issue