Skip to content

Commit ee7e131

Browse files
committed
define htab (HT) const
1 parent 733aff5 commit ee7e131

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Multipart.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ export class Multipart implements Part {
2424
* @internal
2525
*/
2626
public static readonly SP = 0x20;
27+
/**
28+
* Horizontal tab (`\t`) ASCII code
29+
* @internal
30+
*/
31+
public static readonly HT = 0x09;
2732
/**
2833
* Carriage return (`\r`) ASCII code
2934
* @internal
@@ -284,7 +289,7 @@ export class Multipart implements Part {
284289
const byte = data[currentEndOfBoundaryIndex];
285290
if (byte === Multipart.CR && data[currentEndOfBoundaryIndex + 1] === Multipart.LF)
286291
return [boundaryStartIndex, currentEndOfBoundaryIndex + 2];
287-
if (byte === Multipart.SP || byte === 0x09) {
292+
if (byte === Multipart.SP || byte === Multipart.HT) {
288293
currentEndOfBoundaryIndex++;
289294
continue;
290295
}

0 commit comments

Comments
 (0)