diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2019-02-16 15:23:30 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2019-02-16 15:23:30 +0000 |
commit | fe2df00c047f542a5aa048165310b1ef9bf3323b (patch) | |
tree | 6ed1631a000a887b1cb0d8d0c998202b38cfb9e9 | |
parent | 05609efbb88bce492605d720667d7111c379115a (diff) | |
download | netsurf-test-fe2df00c047f542a5aa048165310b1ef9bf3323b.tar.gz netsurf-test-fe2df00c047f542a5aa048165310b1ef9bf3323b.tar.bz2 |
Flush stdout before the image
-rwxr-xr-x | cgi-bin/image.cgi | 1 |
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"]) |