Small changes: added contentlength to upload and made the UrlEncode3986 public

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2141 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2012-10-13 20:35:44 +00:00
parent 048826df3d
commit c0a83c0ee9
2 changed files with 2 additions and 1 deletions

View file

@ -391,6 +391,7 @@ namespace GreenshotPlugin.Core {
/// <param name="webRequest"></param>
public void Upload(HttpWebRequest webRequest) {
webRequest.ContentType = contentType;
webRequest.ContentLength = fileSize;
using (var requestStream = webRequest.GetRequestStream()) {
WriteToStream(requestStream);
}