mirror of
https://github.com/nextcloud/android.git
synced 2024-11-22 13:15:35 +03:00
Merge pull request #13232 from dipshit-enterprises/patch-1
Set content length to -1 for InputStream request bodies from the nextcloud/Android-SingleSignOn library
This commit is contained in:
commit
4ded07f57d
1 changed files with 3 additions and 3 deletions
|
@ -237,7 +237,7 @@ public class InputStreamBinder extends IInputStreamService.Stub {
|
||||||
case "POST":
|
case "POST":
|
||||||
method = new PostMethod(requestUrl);
|
method = new PostMethod(requestUrl);
|
||||||
if (requestBodyInputStream != null) {
|
if (requestBodyInputStream != null) {
|
||||||
RequestEntity requestEntity = new InputStreamRequestEntity(requestBodyInputStream);
|
RequestEntity requestEntity = new InputStreamRequestEntity(requestBodyInputStream, -1);
|
||||||
((PostMethod) method).setRequestEntity(requestEntity);
|
((PostMethod) method).setRequestEntity(requestEntity);
|
||||||
} else if (request.getRequestBody() != null) {
|
} else if (request.getRequestBody() != null) {
|
||||||
StringRequestEntity requestEntity = new StringRequestEntity(
|
StringRequestEntity requestEntity = new StringRequestEntity(
|
||||||
|
@ -251,7 +251,7 @@ public class InputStreamBinder extends IInputStreamService.Stub {
|
||||||
case "PATCH":
|
case "PATCH":
|
||||||
method = new PatchMethod(requestUrl);
|
method = new PatchMethod(requestUrl);
|
||||||
if (requestBodyInputStream != null) {
|
if (requestBodyInputStream != null) {
|
||||||
RequestEntity requestEntity = new InputStreamRequestEntity(requestBodyInputStream);
|
RequestEntity requestEntity = new InputStreamRequestEntity(requestBodyInputStream, -1);
|
||||||
((PatchMethod) method).setRequestEntity(requestEntity);
|
((PatchMethod) method).setRequestEntity(requestEntity);
|
||||||
} else if (request.getRequestBody() != null) {
|
} else if (request.getRequestBody() != null) {
|
||||||
StringRequestEntity requestEntity = new StringRequestEntity(
|
StringRequestEntity requestEntity = new StringRequestEntity(
|
||||||
|
@ -265,7 +265,7 @@ public class InputStreamBinder extends IInputStreamService.Stub {
|
||||||
case "PUT":
|
case "PUT":
|
||||||
method = new PutMethod(requestUrl);
|
method = new PutMethod(requestUrl);
|
||||||
if (requestBodyInputStream != null) {
|
if (requestBodyInputStream != null) {
|
||||||
RequestEntity requestEntity = new InputStreamRequestEntity(requestBodyInputStream);
|
RequestEntity requestEntity = new InputStreamRequestEntity(requestBodyInputStream, -1);
|
||||||
((PutMethod) method).setRequestEntity(requestEntity);
|
((PutMethod) method).setRequestEntity(requestEntity);
|
||||||
} else if (request.getRequestBody() != null) {
|
} else if (request.getRequestBody() != null) {
|
||||||
StringRequestEntity requestEntity = new StringRequestEntity(
|
StringRequestEntity requestEntity = new StringRequestEntity(
|
||||||
|
|
Loading…
Reference in a new issue