[
https://issues.apache.org/jira/browse/CB-10974?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15241216#comment-15241216
]
ASF GitHub Bot commented on CB-10974:
-------------------------------------
GitHub user daserge opened a pull request:
https://github.com/apache/cordova-plugin-file-transfer/pull/141
CB-10974 Cordova file transfer Content-Length header problem
Fixed iOS logic to not to include Content-Length when chunkedMode=true
Fixed Android logic preventing chunkedMode to be enabled for http uploads
Added tests for chunkedMode
Documented chunkedMode not supported on Windows
Documented Uploading of an empty file is not supported for chunkedMode=true
and multipart=false for iOS, pended the corresponding test
[Jira issue](https://issues.apache.org/jira/browse/CB-10974)
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/MSOpenTech/cordova-plugin-file-transfer
CB-10974
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/cordova-plugin-file-transfer/pull/141.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #141
----
commit 922b0460fed7a102a7558e90f8619e83f0735c5b
Author: daserge <[email protected]>
Date: 2016-04-13T14:24:57Z
CB-10974 Cordova file transfer Content-Length header problem
Fixed iOS logic to not to include Content-Length when chunkedMode=true
Fixed Android logic preventing chunkedMode to be enabled for http uploads
Added tests for chunkedMode
Documented chunkedMode not supported on Windows
Documented Uploading of an empty file is not supported for chunkedMode=true
and multipart=false for iOS, pended the corresponding test
----
> Cordova file transfer Content-Length header problem
> ---------------------------------------------------
>
> Key: CB-10974
> URL: https://issues.apache.org/jira/browse/CB-10974
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin File Transfer
> Environment: iPad Mini 2 with iOS 9.3
> Reporter: Roman Lapotchkin
> Assignee: Sergey Shakhnazarov
> Labels: iOS, triaged
>
> The Content-Length header always sending even options.chunkedMode is true. It
> expected header Transfer-Encoding: chuncked. When i commented this code in
> src/ios/CDVFileTransfer.m at line 232 it works:
> [req setValue:[[NSNumber numberWithLongLong:totalPayloadLength] stringValue]
> forHTTPHeaderField:@"Content-Length"];
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]