### fix: 33 verbessere API-Antwort-Handling und Versionsmarker
- **NennungRemoteRepository:** Handling für leeren JSON-Body angepasst. - **MailController:** JSON-Antwort mit Erfolgsstatus und ID hinzugefügt. - **WebMainScreen:** Versionsmarker auf `v2026-04-23.33 - JSON RESPONSE FIX` aktualisiert.
This commit is contained in:
+2
-2
@@ -101,8 +101,8 @@ class NennungRemoteRepository(private val client: HttpClient) {
|
||||
}
|
||||
|
||||
println("Antwort erhalten: ${response.status.value}")
|
||||
val responseText = try { response.body<String>() } catch (e: Exception) { "Kein Body" }
|
||||
println("Antwort Body: $responseText")
|
||||
val responseText = try { response.body<String>() } catch (e: Exception) { "" }
|
||||
println("Antwort Body: '$responseText'")
|
||||
|
||||
if (response.status.isSuccess()) {
|
||||
Result.success(Unit)
|
||||
|
||||
Reference in New Issue
Block a user