diff --git a/IotaCSharpApi/Api/Utils/Rest/JsonWebClient.cs b/IotaCSharpApi/Api/Utils/Rest/JsonWebClient.cs index 800b281..2a82ba8 100644 --- a/IotaCSharpApi/Api/Utils/Rest/JsonWebClient.cs +++ b/IotaCSharpApi/Api/Utils/Rest/JsonWebClient.cs @@ -33,7 +33,7 @@ public TResponse GetPOSTResponseSync(Uri uri, string data) request.ContentLength = bytes.Length; - Stream requestStream = request.GetRequestStream(); + using (Stream requestStream = request.GetRequestStream()) { // Send the data. requestStream.Write(bytes, 0, bytes.Length);