GitHub user AlBevi opened a pull request:
https://github.com/apache/cordova-plugin-file-transfer/pull/47
CRC downloaded files over 3G not match
Some cell providers compress files, my case Vodafone(Spain)
As a result we have doubly compressed files whose crc does not match the
source file.
I've seen two solutions:
1. use https instead of http
2. Use non-transform
For me, it is me with option 2.
The idea is to add a no-transform cache-control HTTP header to request.
This disallow the server from making this kind of change.
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.5
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/AlBevi/cordova-plugin-file-transfer master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/cordova-plugin-file-transfer/pull/47.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 #47
----
commit 0bf9d996e11372143a9d86e6c9db9d1e84cfdcb7
Author: Alberto Benavente <[email protected]>
Date: 2014-11-04T10:47:31Z
Update FileTransfer.java
commit 9b7b675f3dcfe467f3a729c9763d1258b504d75a
Author: Alberto Benavente <[email protected]>
Date: 2014-11-04T12:52:14Z
Update CDVFileTransfer.m
commit 7ecc73352ebe4acc0bc9ef2f5af3d9ac70b34587
Author: Alberto Benavente <[email protected]>
Date: 2014-11-04T12:53:03Z
Update CDVFileTransfer.m
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]