Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for emptyMessageAndNoLeadingSpace (0.2 sec)

  1. okhttp/src/test/java/okhttp3/internal/http/StatusLineTest.kt

      /**
       * This is not defined in the protocol but some servers won't add the leading empty space when the
       * message is empty. http://www.w3.org/Protocols/rfc2616/rfc2616-sec6.html#sec6.1
       */
      @Test
      fun emptyMessageAndNoLeadingSpace() {
        val version = 1
        val code = 503
        val statusLine = parse("HTTP/1.$version $code")
        assertThat(statusLine.message).isEqualTo("")
        assertThat(statusLine.protocol).isEqualTo(Protocol.HTTP_1_1)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.5K bytes
    - Viewed (0)
Back to top