diff options
Diffstat (limited to 'plugins/CacheBroker')
-rw-r--r-- | plugins/CacheBroker/src/Endpoints/BrokerRegistrationEndpoint.cs | 4 |
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()); } |