Skip to content
This repository was archived by the owner on Jul 27, 2021. It is now read-only.

Added missing 'using' #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Added missing 'using'
  • Loading branch information
tomriedl committed Dec 25, 2017

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 46fbce5101108c0e27b2f4fb8a69ad93caa707d2
2 changes: 1 addition & 1 deletion IotaCSharpApi/Api/Utils/Rest/JsonWebClient.cs
Original file line number Diff line number Diff line change
@@ -33,7 +33,7 @@ public TResponse GetPOSTResponseSync<TResponse>(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);