Merge pull request #37 from nextcloud/softenCookie

HOTFIX: Soften cookie
This commit is contained in:
Lukas Reschke 2016-06-20 16:00:29 +02:00 committed by GitHub
commit 82a4315b85
2 changed files with 4 additions and 2 deletions

View file

@ -19,8 +19,8 @@
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.owncloud.android"
android:versionCode="10000000"
android:versionName="1.0.0" >
android:versionCode="10000100"
android:versionName="1.0.1" >
<uses-sdk
android:minSdkVersion="14"

View file

@ -285,6 +285,8 @@ public class ThumbnailsCacheManager {
px + "/" + px + Uri.encode(file.getRemotePath(), "/");
Log_OC.d("Thumbnail", "URI: " + uri);
get = new GetMethod(uri);
get.setRequestHeader("Cookie",
"nc_sameSiteCookielax=true;nc_sameSiteCookiestrict=true");
int status = mClient.executeMethod(get);
if (status == HttpStatus.SC_OK) {
InputStream inputStream = get.getResponseBodyAsStream();