From de07c048bc932f2ff8d2dff235174314132794fc Mon Sep 17 00:00:00 2001 From: Jan Romann Date: Wed, 26 Jul 2023 08:23:21 +0200 Subject: [PATCH] fixup! refactor(coap-server): refactor request handling --- packages/binding-coap/src/coap-server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/binding-coap/src/coap-server.ts b/packages/binding-coap/src/coap-server.ts index b0da6843a..22dc6649a 100644 --- a/packages/binding-coap/src/coap-server.ts +++ b/packages/binding-coap/src/coap-server.ts @@ -347,7 +347,7 @@ export default class CoapServer implements ProtocolServer { } const content = ContentSerdes.get().valueToContent(thing.getThingDescription(), undefined, contentType); - const payload = await ProtocolHelpers.readStreamFully(content.body); + const payload = await content.toBuffer(); debug(`Sending CoAP response for TD with Content-Format ${contentType}.`); this.sendContentResponse(res, payload, contentType);