(headerValue)
| 93 | } |
| 94 | |
| 95 | function getLastEntryInMultiHeaderValue (headerValue) { |
| 96 | // we use the last one if the header is set more than once |
| 97 | const lastIndex = headerValue.lastIndexOf(',') |
| 98 | return lastIndex === -1 ? headerValue.trim() : headerValue.slice(lastIndex + 1).trim() |
| 99 | } |
| 100 | |
| 101 | function buildRequestWithTrustProxy (R, trustProxy) { |
| 102 | const _Request = buildRegularRequest(R) |