1
0
mirror of synced 2024-11-15 18:53:22 +01:00

BUGFIX: "Strip HTTP header" operation now functions correctly.

This commit is contained in:
n1474335 2017-03-09 17:16:47 +00:00 committed by GitHub
parent 691f156911
commit 94ea086e05

View File

@ -19,8 +19,8 @@ var HTTP = {
* @returns {string} * @returns {string}
*/ */
runStripHeaders: function(input, args) { runStripHeaders: function(input, args) {
var headerEnd = input.indexOf("\r\n\r\n") + var headerEnd = input.indexOf("\r\n\r\n");
(headerEnd < 0) ? input.indexOf("\n\n") + 2 : headerEnd + 4; headerEnd = (headerEnd < 0) ? input.indexOf("\n\n") + 2 : headerEnd + 4;
return (headerEnd < 2) ? input : input.slice(headerEnd, input.length); return (headerEnd < 2) ? input : input.slice(headerEnd, input.length);
}, },