aboutsummaryrefslogtreecommitdiff
path: root/plugins/CacheBroker
diff options
context:
space:
mode:
authorLibravatar vnugent <public@vaughnnugent.com>2023-01-14 16:33:37 -0500
committerLibravatar vnugent <public@vaughnnugent.com>2023-01-14 16:33:37 -0500
commit0e38da4b583f0227beca3a3f870c395f152c507a (patch)
treee4afcff6390ef2d4528ab4c16bc4c328f8607e56 /plugins/CacheBroker
parent509ecc7ee4f6cd1d85e10c1e3f7e8303edbd94ae (diff)
Utils updates
Diffstat (limited to 'plugins/CacheBroker')
-rw-r--r--plugins/CacheBroker/src/Endpoints/BrokerRegistrationEndpoint.cs4
1 files changed, 3 insertions, 1 deletions
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());
}