diff --git a/GreenshotPlugin/Core/NetworkHelper.cs b/GreenshotPlugin/Core/NetworkHelper.cs index 804d5ebbc..9aa63e357 100644 --- a/GreenshotPlugin/Core/NetworkHelper.cs +++ b/GreenshotPlugin/Core/NetworkHelper.cs @@ -391,6 +391,7 @@ namespace GreenshotPlugin.Core { /// public void Upload(HttpWebRequest webRequest) { webRequest.ContentType = contentType; + webRequest.ContentLength = fileSize; using (var requestStream = webRequest.GetRequestStream()) { WriteToStream(requestStream); } diff --git a/GreenshotPlugin/Core/OAuthHelper.cs b/GreenshotPlugin/Core/OAuthHelper.cs index 1f0896394..971c8cff8 100644 --- a/GreenshotPlugin/Core/OAuthHelper.cs +++ b/GreenshotPlugin/Core/OAuthHelper.cs @@ -225,7 +225,7 @@ namespace GreenshotPlugin.Core { /// The value to Url encode /// Returns a Url encoded string /// This will cause an ignorable CA1055 warning in code analysis. - private static string UrlEncode3986(string value) { + public static string UrlEncode3986(string value) { StringBuilder result = new StringBuilder(); foreach (char symbol in value) {