From 6cd2f8ef2fcf474b8ed02a1da3031657d7a91244 Mon Sep 17 00:00:00 2001 From: bignerd95 Date: Wed, 26 Jun 2013 11:44:24 +0200 Subject: Remove char " (double quotes) from boundary On safari iphone and mac the stream freezes if in boundary value are present " (double quotes) chars --- mjpeg-proxy.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mjpeg-proxy.js b/mjpeg-proxy.js index afee772..9358036 100644 --- a/mjpeg-proxy.js +++ b/mjpeg-proxy.js @@ -33,7 +33,7 @@ function extractBoundary(contentType) { endIndex = contentType.length; } } - return contentType.substring(startIndex + 9, endIndex); + return contentType.substring(startIndex + 9, endIndex).replace(/"/gi,''); } var MjpegProxy = exports.MjpegProxy = function(mjpegUrl) { @@ -139,4 +139,4 @@ var MjpegProxy = exports.MjpegProxy = function(mjpegUrl) { } }); } -} \ No newline at end of file +} -- cgit v1.2.1