Merge pull request #217 from StefMa/StefMa-patch-1

Fix kotlin defaultRequest indention
This commit is contained in:
Pavel Gorgulov 2025-03-26 15:09:55 +01:00 • committed by GitHub
commit d773943884
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1255,12 +1255,12 @@ The tool execution handler is responsible for actually executing the logic of ea
// Create an HTTP client with a default request configuration and JSON content negotiation
val httpClient = HttpClient {
defaultRequest {
url("https://api.weather.gov")
headers {
append("Accept", "application/geo+json")
append("User-Agent", "WeatherApiClient/1.0")
}
contentType(ContentType.Application.Json)
url("https://api.weather.gov")
headers {
append("Accept", "application/geo+json")
append("User-Agent", "WeatherApiClient/1.0")
}
contentType(ContentType.Application.Json)
}
// Install content negotiation plugin for JSON serialization/deserialization
install(ContentNegotiation) { json(Json { ignoreUnknownKeys = true }) }