From 05f92c6b59139fe1080f806cb0b057a82a0bd93b Mon Sep 17 00:00:00 2001 From: limepotato Date: Sat, 21 Sep 2024 16:22:53 -0600 Subject: [PATCH] buildstring --- .../observer/nelle/nelleObserverBackend/plugins/Client.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/backend/src/main/kotlin/observer/nelle/nelleObserverBackend/plugins/Client.kt b/backend/src/main/kotlin/observer/nelle/nelleObserverBackend/plugins/Client.kt index eca7989..4019616 100644 --- a/backend/src/main/kotlin/observer/nelle/nelleObserverBackend/plugins/Client.kt +++ b/backend/src/main/kotlin/observer/nelle/nelleObserverBackend/plugins/Client.kt @@ -42,7 +42,12 @@ suspend fun ntfyMsg( click: String, ) { val message: HttpResponse = - client.post("https://" + endpoint) { + client.post( + buildString { + append("https://") + append(endpoint) + }, + ) { headers { append("Title", title) append("Attach", attach)