Skip to content

Commit

Permalink
Simplify name
Browse files Browse the repository at this point in the history
  • Loading branch information
yschimke committed Oct 15, 2023
1 parent 59579bf commit 13869f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ class MockResponse : Cloneable {

override fun toString() = status

fun addInformationalResponseInternal(informationalResponse: MockResponse): MockResponse = apply {
fun addInformationalResponse(informationalResponse: MockResponse): MockResponse = apply {
informationalResponses += informationalResponse
}

Expand Down
4 changes: 2 additions & 2 deletions okhttp/src/test/java/okhttp3/CallTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -2817,7 +2817,7 @@ public void serverRespondsWithEarlyHintsHttp2() throws Exception {
enableProtocol(Protocol.HTTP_2);
server.enqueue(
new MockResponse()
.addInformationalResponseInternal(
.addInformationalResponse(
new MockResponse().setResponseCode(103).addHeader("Link", "</style.css>; rel=preload; as=style")
)
);
Expand All @@ -2833,7 +2833,7 @@ public void serverRespondsWithEarlyHintsHttp2() throws Exception {
public void serverRespondsWithEarlyHintsHttp1() throws Exception {
server.enqueue(
new MockResponse()
.addInformationalResponseInternal(
.addInformationalResponse(
new MockResponse().setResponseCode(103).addHeader("Link", "</style.css>; rel=preload; as=style")
)
);
Expand Down

0 comments on commit 13869f6

Please sign in to comment.