Skip to content

Commit d773943

Browse files
authored
Merge pull request modelcontextprotocol#217 from StefMa/StefMa-patch-1
Fix kotlin defaultRequest indention
2 parents 88da097 + 0997edd commit d773943

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

quickstart/server.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1255,12 +1255,12 @@ The tool execution handler is responsible for actually executing the logic of ea
12551255
// Create an HTTP client with a default request configuration and JSON content negotiation
12561256
val httpClient = HttpClient {
12571257
defaultRequest {
1258-
url("https://api.weather.gov")
1259-
headers {
1260-
append("Accept", "application/geo+json")
1261-
append("User-Agent", "WeatherApiClient/1.0")
1262-
}
1263-
contentType(ContentType.Application.Json)
1258+
url("https://api.weather.gov")
1259+
headers {
1260+
append("Accept", "application/geo+json")
1261+
append("User-Agent", "WeatherApiClient/1.0")
1262+
}
1263+
contentType(ContentType.Application.Json)
12641264
}
12651265
// Install content negotiation plugin for JSON serialization/deserialization
12661266
install(ContentNegotiation) { json(Json { ignoreUnknownKeys = true }) }

0 commit comments

Comments
 (0)