summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2019-02-16 15:23:30 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2019-02-16 15:23:30 +0000
commitfe2df00c047f542a5aa048165310b1ef9bf3323b (patch)
tree6ed1631a000a887b1cb0d8d0c998202b38cfb9e9
parent05609efbb88bce492605d720667d7111c379115a (diff)
downloadnetsurf-test-fe2df00c047f542a5aa048165310b1ef9bf3323b.tar.gz
netsurf-test-fe2df00c047f542a5aa048165310b1ef9bf3323b.tar.bz2
Flush stdout before the image
-rwxr-xr-xcgi-bin/image.cgi1
1 files changed, 1 insertions, 0 deletions
diff --git a/cgi-bin/image.cgi b/cgi-bin/image.cgi
index b128c3a..3f58abc 100755
--- a/cgi-bin/image.cgi
+++ b/cgi-bin/image.cgi
@@ -51,4 +51,5 @@ im.putdata([(255,0,0)] * (width * height))
print("Content-Type: {}".format(fmt["ctype"]))
print("")
+sys.stdout.flush()
im.save(fp=sys.stdout.buffer, format=fmt["ptype"])