Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for gzipWithRedirectAndConnectionReuse (0.19 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt

      }
    
      /**
       * We had a bug where we weren't closing Gzip streams on redirects.
       * https://github.com/square/okhttp/issues/441
       */
      @Test
      fun gzipWithRedirectAndConnectionReuse() {
        server.enqueue(
          MockResponse
            .Builder()
            .code(HttpURLConnection.HTTP_MOVED_TEMP)
            .addHeader("Location: /foo")
            .addHeader("Content-Encoding: gzip")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jun 21 20:36:35 UTC 2025
    - 133.2K bytes
    - Viewed (0)
Back to top