Skip to content

Commit 9dca58d

Browse files
committed
[FIX] Allow redacted chars after last chunk
1 parent 98dec3a commit 9dca58d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/utils/http-parser.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,10 @@ export function makeHttpResponseParser() {
161161
}
162162
}
163163

164+
// consume the terminator + validated trailing bytes so
165+
// streamEnded() (streaming path) doesn't flag leftover data
166+
currentByteIdx += remaining.length
167+
remaining = new Uint8Array()
164168
break
165169
}
166170

0 commit comments

Comments
 (0)