mirror of
https://github.com/nextcloud/android.git
synced 2024-11-29 18:59:18 +03:00
Merge pull request #37 from nextcloud/softenCookie
HOTFIX: Soften cookie
This commit is contained in:
commit
82a4315b85
2 changed files with 4 additions and 2 deletions
|
@ -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"
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue