1
0
mirror of https://github.com/owncloud/android-library.git synced 2025-06-08 00:16:09 +00:00

OC-2840: Fix bug: It's not possible to share a folder which has special characters

This commit is contained in:
masensio 2014-02-05 16:37:12 +01:00
parent 44ccba347c
commit e782cfa704

View File

@ -109,6 +109,7 @@ public class CreateShareRemoteOperation extends RemoteOperation {
post = new PostMethod(client.getBaseUri() + ShareUtils.SHAREAPI_ROUTE);
Log.d(TAG, "URL ------> " + client.getBaseUri() + ShareUtils.SHAREAPI_ROUTE);
post.setRequestHeader( "Content-Type", "application/x-www-form-urlencoded; charset=utf-8"); // necessary for special characters
post.addParameter(PARAM_PATH, mPath);
post.addParameter(PARAM_SHARE_TYPE, Integer.toString(mShareType.getValue()));
post.addParameter(PARAM_SHARE_WITH, mShareWith);