Skip to content

Commit 6d4b9f0

Browse files
committed
revise TLSCipherText
1 parent 241f59b commit 6d4b9f0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tls/enum",
3-
"version": "0.6.5",
3+
"version": "0.6.6",
44
"exports": "./src/mod.ts",
55
"publish": {
66
"exclude": ["dist/"]

src/contentype.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ export class TLSCiphertext extends Uint8Array {
140140
struct.set(lengthOf, 3);
141141
struct.set(encrypted_record, 5);
142142
super(struct)
143-
this.header = struct.subarray(0, 5);
144-
this.encrypted_record = encrypted_record
143+
this.header = Uint8Array.from(struct.subarray(0, 5));
144+
this.encrypted_record = Uint8Array.from(encrypted_record)
145145
}
146146
}
147147

0 commit comments

Comments
 (0)