diff options
Diffstat (limited to 'src/bg/RequestGuard.js')
-rw-r--r-- | src/bg/RequestGuard.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bg/RequestGuard.js b/src/bg/RequestGuard.js index d7994f1..a50b571 100644 --- a/src/bg/RequestGuard.js +++ b/src/bg/RequestGuard.js @@ -367,7 +367,7 @@ var RequestGuard = (() => { header = h; h.value = CSP.inject(h.value, ""); } else if (/^\s*Content-(Type|Disposition)\s*$/i.test(h.name)) { - content[h.name.split("-")[1].trim().toLowerCase()] = h.value; + content[RegExp.$1.toLowerCase()] = h.value; } } |