diff options
Diffstat (limited to 'textproto')
-rw-r--r-- | textproto/mod.ts | 6 | ||||
-rw-r--r-- | textproto/reader_test.ts | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/textproto/mod.ts b/textproto/mod.ts index 6c4e42e51..419a57b68 100644 --- a/textproto/mod.ts +++ b/textproto/mod.ts @@ -106,8 +106,10 @@ export class TextProtoReader { //let key = canonicalMIMEHeaderKey(kv.subarray(0, endKey)); let key = str(kv.subarray(0, endKey)); - // As per RFC 7230 field-name is a token, tokens consist of one or more chars. - // We could return a ProtocolError here, but better to be liberal in what we + // As per RFC 7230 field-name is a token, + // tokens consist of one or more chars. + // We could return a ProtocolError here, + // but better to be liberal in what we // accept, so if we get an empty key, skip it. if (key == "") { continue; diff --git a/textproto/reader_test.ts b/textproto/reader_test.ts index dfe918282..2b81685a2 100644 --- a/textproto/reader_test.ts +++ b/textproto/reader_test.ts @@ -52,7 +52,8 @@ test({ name: "[textproto] Reader : MIME Header", async fn(): Promise<void> { const input = - "my-key: Value 1 \r\nLong-key: Even Longer Value\r\nmy-Key: Value 2\r\n\n"; + "my-key: Value 1 \r\nLong-key: Even Longer Value\r\nmy-Key: " + + "Value 2\r\n\n"; const r = reader(input); const m = assertNotEOF(await r.readMIMEHeader()); assertEquals(m.get("My-Key"), "Value 1, Value 2"); |