* If string contains non-ASCII characters, assumes it's UTF-8 encoded and decodes it. * Since UTF-8 is a superset of ASCII, this will work for ASCII strings as well. * @param {string} value * @returns {string}
(value)
| 80 | * @returns {string} |
| 81 | */ |
| 82 | function normalizeBinaryStringToUtf8 (value) { |
| 83 | return Buffer.from(value, 'binary').toString('utf8') |
| 84 | } |
| 85 | |
| 86 | /** @returns {URL} */ |
| 87 | function requestCurrentURL (request) { |
no test coverage detected