- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for testCharsetNameIsSingleQuoted (0.13 seconds)
-
okhttp/src/jvmTest/kotlin/okhttp3/MediaTypeTest.kt
} /** * This is invalid according to RFC 822. But it's what Chrome does and it avoids a potentially * unpleasant IllegalCharsetNameException. */ @Test fun testCharsetNameIsSingleQuoted() { val mediaType = parse("text/plain;charset='utf-8'") assertEquals("UTF-8", mediaType.charsetName()) } @Test fun testParseDanglingSemicolon() { val mediaType = parse("text/plain;")
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 7.5K bytes - Click Count (0)