(rangeStart, rangeEnd, fullLength)
| 4900 | } |
| 4901 | if (rangeEndValue === null && rangeStartValue === null) { |
| 4902 | return "failure"; |
| 4903 | } |
| 4904 | if (rangeStartValue > rangeEndValue) { |
| 4905 | return "failure"; |
| 4906 | } |
| 4907 | return { rangeStartValue, rangeEndValue }; |
| 4908 | } |
| 4909 | function buildContentRange(rangeStart, rangeEnd, fullLength) { |
| 4910 | let contentRange = "bytes "; |
| 4911 | contentRange += isomorphicEncode(`${rangeStart}`); |
| 4912 | contentRange += "-"; |
| 4913 | contentRange += isomorphicEncode(`${rangeEnd}`); |
no test coverage detected