(headersToRemove, connectionHeader)
| 48 | } |
| 49 | |
| 50 | function appendConnectionHeaderTokens (headersToRemove, connectionHeader) { |
| 51 | const values = Array.isArray(connectionHeader) ? connectionHeader : [connectionHeader] |
| 52 | |
| 53 | for (let i = 0; i < values.length; i++) { |
| 54 | const tokens = values[i].split(',') |
| 55 | for (let j = 0; j < tokens.length; j++) { |
| 56 | headersToRemove.push(trimOWS(tokens[j]).toLowerCase()) |
| 57 | } |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | function getSameOriginPath (cacheKey, location) { |
| 62 | if (typeof location !== 'string') { |
no test coverage detected