From 0e38da4b583f0227beca3a3f870c395f152c507a Mon Sep 17 00:00:00 2001 From: vnugent Date: Sat, 14 Jan 2023 16:33:37 -0500 Subject: Utils updates --- plugins/CacheBroker/src/Endpoints/BrokerRegistrationEndpoint.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins/CacheBroker/src/Endpoints') diff --git a/plugins/CacheBroker/src/Endpoints/BrokerRegistrationEndpoint.cs b/plugins/CacheBroker/src/Endpoints/BrokerRegistrationEndpoint.cs index 7867e97..c2e0b84 100644 --- a/plugins/CacheBroker/src/Endpoints/BrokerRegistrationEndpoint.cs +++ b/plugins/CacheBroker/src/Endpoints/BrokerRegistrationEndpoint.cs @@ -200,8 +200,10 @@ namespace VNLib.Plugins.Cache.Broker.Endpoints { //get a buffer to store data in using VnMemoryStream buffer = new(); + //Copy input stream to buffer - await inputStream.CopyToAsync(buffer, 4096, Memory.Shared); + await inputStream.CopyToAsync(buffer, 4096, MemoryUtil.Shared); + //Parse jwt return JsonWebToken.ParseRaw(buffer.AsSpan()); } -- cgit