Skip to content

Commit

Permalink
-Sanitize Header Impl (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
KhubaibKhan4 committed Jun 23, 2024
1 parent 0ce5b07 commit 433d3d3
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import io.ktor.client.plugins.logging.LogLevel
import io.ktor.client.plugins.logging.Logger
import io.ktor.client.plugins.logging.Logging
import io.ktor.client.request.headers
import io.ktor.http.HttpHeaders
import io.ktor.serialization.kotlinx.json.json
import kotlinx.serialization.json.Json
import org.company.app.data.remote.CryptoClient
Expand Down Expand Up @@ -36,6 +37,7 @@ val appModule = module {
}
}
filter { filter-> filter.url.host.contains("coinmarketcap.com") }
sanitizeHeader { header-> header == HttpHeaders.Authorization }
}
install(HttpTimeout) {
requestTimeoutMillis = Constant.TIME_OUT
Expand Down

0 comments on commit 433d3d3

Please # to comment.