(ctxId)
| 55 | } |
| 56 | |
| 57 | var web_req_get_payload = function (ctxId) { |
| 58 | var payload = null; |
| 59 | if (web_req_ctxs[ctxId].filename != "") { |
| 60 | if (FS.analyzePath(web_req_ctxs[ctxId].filename).exists) { |
| 61 | const content = FS.readFile(web_req_ctxs[ctxId].filename); |
| 62 | payload = new Blob([content]); |
| 63 | } |
| 64 | } |
| 65 | return payload ?? web_req_ctxs[ctxId].formdata ?? web_req_ctxs[ctxId].body; |
| 66 | } |
| 67 | |
| 68 | var str_to_bytearray = function (str) { |
| 69 | const bytes = new Uint8Array(str.length); |
no outgoing calls
no test coverage detected