diff --git a/playlet-lib/src/source/services/HttpClient.bs b/playlet-lib/src/source/services/HttpClient.bs index 68fe4dc4..915157f1 100644 --- a/playlet-lib/src/source/services/HttpClient.bs +++ b/playlet-lib/src/source/services/HttpClient.bs @@ -842,6 +842,11 @@ namespace HttpClientCache return end if + body = ValidString(response.Text()) + if body = "" + return + end if + date = CreateObject("roDateTime") timestamp = date.AsSeconds() @@ -857,7 +862,6 @@ namespace HttpClientCache ' {body} ' the body as is, string size matching metadata.body jsonHeaders = FormatJson(response.Headers()) - body = ValidString(response.Text()) cacheMetadata = { timestamp: timestamp