Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for gzipWithRedirectAndConnectionReuse (0.3 seconds)

  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")
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 133.3K bytes
    - Click Count (0)
Back to Top