mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-09 15:55:01 -04:00
working on functions
This commit is contained in:
parent
1c6eff0c6c
commit
c0f4dc6c64
1 changed files with 1 additions and 4 deletions
|
@ -252,12 +252,9 @@ class Mime {
|
||||||
static walkMime(mimeObj, methods, recursive=true) {
|
static walkMime(mimeObj, methods, recursive=true) {
|
||||||
let contType = Mime._decodeComplexField(mimeObj, "content-type");
|
let contType = Mime._decodeComplexField(mimeObj, "content-type");
|
||||||
if (contType && contType.startsWith("mulipart/") && recursive) {
|
if (contType && contType.startsWith("mulipart/") && recursive) {
|
||||||
for (let i = 0; i < mimeObj.body.length; i++) {
|
mimeObj.body.forEach(obj => Mime.walkMime(obj, methods, recursive));
|
||||||
mimeObj
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
methods.forEach(method => method(mimeObj));
|
methods.forEach(method => method(mimeObj));
|
||||||
yield mimeObj;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue