diff options
author | bignerd95 <lorenzo.santina@gmail.com> | 2013-06-26 11:44:24 +0200 |
---|---|---|
committer | bignerd95 <lorenzo.santina@gmail.com> | 2013-06-26 11:44:24 +0200 |
commit | 6cd2f8ef2fcf474b8ed02a1da3031657d7a91244 (patch) | |
tree | beade602b267302b9d9f07fc0d887bd9c6c6e274 | |
parent | d402589076a7199a3258a7df5703994ee573a2e0 (diff) |
Remove char " (double quotes) from boundary
On safari iphone and mac the stream freezes if in boundary value are present " (double quotes) chars
-rw-r--r-- | mjpeg-proxy.js | 4 |
1 files 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 +} |