You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/07/10 22:10:00 UTC

[jira] [Commented] (CB-10974) Cordova file transfer Content-Length header problem

    [ https://issues.apache.org/jira/browse/CB-10974?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16081251#comment-16081251 ] 

ASF GitHub Bot commented on CB-10974:
-------------------------------------

Github user cozzbie commented on the issue:

    https://github.com/apache/cordova-plugin-file-transfer/pull/141
  
    Issue seems to be mostly an android problem because same code works fine on iOS. Using @cooperjbrandon advice and adding `options.chunkedMode = false;` to just the android code fixed the issue. Thanks


> 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: cordova-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.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org