From 57ce307cf54a0fb7497b4c18c750f6bd7f751d31 Mon Sep 17 00:00:00 2001 From: Kirill Kamakin Date: Sun, 11 Dec 2022 21:14:45 +0100 Subject: [PATCH] Configure port through base url interceptor --- .../gq/kirmanak/mealient/datasource/impl/BaseUrlInterceptor.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/datasource/src/main/kotlin/gq/kirmanak/mealient/datasource/impl/BaseUrlInterceptor.kt b/datasource/src/main/kotlin/gq/kirmanak/mealient/datasource/impl/BaseUrlInterceptor.kt index 933e5d5..5df239c 100644 --- a/datasource/src/main/kotlin/gq/kirmanak/mealient/datasource/impl/BaseUrlInterceptor.kt +++ b/datasource/src/main/kotlin/gq/kirmanak/mealient/datasource/impl/BaseUrlInterceptor.kt @@ -29,6 +29,7 @@ class BaseUrlInterceptor @Inject constructor( .newBuilder() .host(baseUrl.host) .scheme(baseUrl.scheme) + .port(baseUrl.port) .build() val newRequest = oldRequest.newBuilder().url(correctUrl).build() logger.d { "Replaced ${oldRequest.url} with ${newRequest.url}" }