Skip to content

Commit

Permalink
Merge pull request #13359 from wordpress-mobile/fix-mocking-intercept…
Browse files Browse the repository at this point in the history
…or-issue

Fix issues in MockingInterceptor.kt
  • Loading branch information
planarvoid authored Nov 11, 2020
2 parents da32ded + da3cace commit 125b398
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 125b398

Please sign in to comment.