summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorRoberto De Ioris <info@unbit.it>2013-12-01 05:44:36 +0100
committerRoberto De Ioris <info@unbit.it>2013-12-01 05:44:36 +0100
commitbfd699dac5ebb6a5d91fe3db1e2546fcfcdc1caa (patch)
treeaf78d3a7b2cd9698661e0eac850e3bd371487c54 /examples
parentcc3e43eb3da0913f66b48ab72a204def24dcff37 (diff)
downloaduwsgi-bfd699dac5ebb6a5d91fe3db1e2546fcfcdc1caa.tar.gz
another mjpeg fix
Diffstat (limited to 'examples')
-rw-r--r--examples/mjpeg_stream.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/mjpeg_stream.py b/examples/mjpeg_stream.py
index 761887e8..ae9e5474 100644
--- a/examples/mjpeg_stream.py
+++ b/examples/mjpeg_stream.py
@@ -10,7 +10,7 @@ def application(env, start_response):
('Cache-Control', 'no-cache'),
('Cache-Control', 'private'),
('Pragma', 'no-cache'),
- ('Content-Type', 'multipart/x-mixed-replace; boundary=--' + boundary),
+ ('Content-Type', 'multipart/x-mixed-replace; boundary=' + boundary),
]
)
@@ -21,5 +21,5 @@ def application(env, start_response):
print os.system('screencapture -t jpg -m -T 1 screenshot.jpg')
f = open('screenshot.jpg')
yield env['wsgi.file_wrapper'](f)
- yield "--%s\r\n" % boundary
+ yield "\r\n--%s\r\n" % boundary
#os.system('./isightcapture -w 640 -h 480 screenshot.jpg')