(text)
| 544 | file.pipe(req); |
| 545 | }); |
| 546 | } |
| 547 | |
| 548 | function toUtf8 (res, onDone, needBinary) { |
| 549 | const contentType = (res.headers['content-type'] || '').split(';'); |
| 550 | let encoding = null; |
| 551 | for (let i = 0; i < contentType.length; i++) { |
| 552 | const keyValue = contentType[i].split('='); |
| 553 | if (keyValue.length === 2 && keyValue[0].toLowerCase() === 'charset') { |
nothing calls this directly
no outgoing calls
no test coverage detected