Re: [whatwg/fetch] Allow range header without preflight (#1312)

@jakearchibald commented on this pull request.



> +     <dd>
+      <ol>
+       <li><p>If the <var>i</var>th <a>byte</a> of <var>value</var> is not in the range 0x30 (0) to
+       0x39 (9), inclusive, then return false.
+
+       <li><p>Append the <var>i</var>th <a>byte</a> of <var>value</var> to <var>rangeEndBytes</var>.
+      </ol>
+    </dl>
+
+    <li><p>Increment <var>i</var>.
+  </ol>
+
+ <li>If <var>rangeEndBytes</var>'s <a for="byte sequence">length</a> is 0, then return true.
+
+ <li><p>If <var>rangeStartBytes</var>, parsed as an integer, is greater than
+ <var>rangeEndBytes</var>, parsed as an integer, then return false.

"parsed as an integer" feels hand-wavey, but I wasn't sure of the 'right' way.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/pull/1312#pullrequestreview-765196027

Received on Tuesday, 28 September 2021 09:28:43 UTC