cgi: fix cached output for Python3
* wrap/python/ajax/spotcgi.in: Fix.
This commit is contained in:
parent
533fc21a25
commit
de00bd3e25
1 changed files with 1 additions and 0 deletions
|
|
@ -45,6 +45,7 @@ if qs:
|
|||
cache = open(cachename, "rb", 0)
|
||||
if hasattr(sys.stdout, 'buffer'):
|
||||
# Python 3+
|
||||
sys.stdout.flush()
|
||||
sys.stdout.buffer.write(cache.read())
|
||||
else:
|
||||
# Python 2.x
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue