mirror of
https://github.com/greenshot/greenshot
synced 2025-07-14 17:13:44 -07:00
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:
parent
048826df3d
commit
c0a83c0ee9
2 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue