Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testNoUncompress (0.09 sec)

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

        val responseString = uncompressed.body.string()
        assertThat(responseString).contains("\"gzipped\": true,")
        assertThat(responseString).contains("\"Accept-Encoding\": \"br,gzip\"")
      }
    
      @Test
      fun testNoUncompress() {
        val response = response("https://httpbin.org/brotli", "XXXX".encodeUtf8())
    
        val same = uncompress(response)
    
        val responseString = same.body.string()
        assertThat(responseString).isEqualTo("XXXX")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.2K bytes
    - Viewed (0)
Back to top