summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorges-Etienne Legendre <legege@legege.com>2013-06-27 10:51:59 -0700
committerGeorges-Etienne Legendre <legege@legege.com>2013-06-27 10:51:59 -0700
commit83cf5017179c4ce3ba150ab7551bad57946825ee (patch)
treebeade602b267302b9d9f07fc0d887bd9c6c6e274
parentd402589076a7199a3258a7df5703994ee573a2e0 (diff)
parent6cd2f8ef2fcf474b8ed02a1da3031657d7a91244 (diff)
Merge pull request #1 from bignerd95/master
Remove double quotes from boundary
-rw-r--r--mjpeg-proxy.js4
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
+}