Verified Commit 2bf0bfe6 authored by Thomas Rientjes's avatar Thomas Rientjes
Browse files

Improve request sanitation mechanism

parent 4b816768
......@@ -166,9 +166,9 @@ stateManager._stripMetadata = function (requestDetails) {
for (let i = 0; i < requestDetails.requestHeaders.length; ++i) {
if (requestDetails.requestHeaders[i].name === 'Origin') {
requestDetails.requestHeaders.splice(i, 1);
requestDetails.requestHeaders.splice(i--, 1);
} else if (requestDetails.requestHeaders[i].name === 'Referer') {
requestDetails.requestHeaders.splice(i, 1);
requestDetails.requestHeaders.splice(i--, 1);
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment