mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-09 07:45:00 -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) {
|
||||
let contType = Mime._decodeComplexField(mimeObj, "content-type");
|
||||
if (contType && contType.startsWith("mulipart/") && recursive) {
|
||||
for (let i = 0; i < mimeObj.body.length; i++) {
|
||||
mimeObj
|
||||
}
|
||||
mimeObj.body.forEach(obj => Mime.walkMime(obj, methods, recursive));
|
||||
} else {
|
||||
methods.forEach(method => method(mimeObj));
|
||||
yield mimeObj;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue