Search Options

Results per page
Sort
Preferred Languages
Advance

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

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

        val uncompressed = uncompress(response)
    
        assertFailure {
          uncompressed.body.string()
        }.isInstanceOf<IOException>()
          .message()
          .isNotNull()
          .matches(
            Regex(
              "decompression bomb\\? outputByteCount=\\d+, inputByteCount=\\d+ exceeds max ratio of 100",
            ),
          )
      }
    
      /** Returns a ByteString that expands to 10 GiB when Brotli-decompressed. */
    Plain Text
    - Registered: Fri Mar 29 11:42:11 GMT 2024
    - Last Modified: Mon Jan 29 22:50:20 GMT 2024
    - 2.9K bytes
    - Viewed (0)
Back to top