Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testFailsUncompress (0.12 sec)

  1. okhttp-brotli/src/test/java/okhttp3/brotli/BrotliInterceptorTest.kt

        val same = brotliInterceptor.decompress(response)
    
        val responseString = same.body.string()
        assertThat(responseString).isEqualTo("XXXX")
      }
    
      @Test
      fun testFailsUncompress() {
        val response =
          response("https://httpbin.org/brotli", "bb919aaa06e8".decodeHex()) {
            header("Content-Encoding", "br")
          }
    
        assertFailsWith<IOException> {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Aug 22 08:12:58 UTC 2025
    - 4.4K bytes
    - Viewed (0)
Back to top