Skip to content

Commit

Permalink
Fix issues in MockingInterceptor.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
malinajirka committed Nov 11, 2020
1 parent 8af9a2f commit da3cace
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ class MockingInterceptor : Interceptor {
val request = chain.request()

// Redirect all WordPress.com API requests to local mock server
if (request.url().host() == "public-api.wordpress.com") {
val newUrl = request.url().newBuilder()
if (request.url.host == "public-api.wordpress.com") {
val newUrl = request.url.newBuilder()
.scheme("http")
.host("localhost")
.port(BaseTest.WIREMOCK_PORT)
Expand Down

0 comments on commit da3cace

Please sign in to comment.