GitHub user restouffer opened a pull request:
https://github.com/apache/cordova-plugin-file-transfer/pull/126
[Android] Handle redirects when downloading a file
The FileTransfer plugin was stopping on a 301 redirect and storing the HTML
from that page instead of the target file. This adds a loop that detects
redirect headers and continues following them until a non-redirect page is
loaded.
Based on the work of mathieudutour:
https://github.com/phonegap/phonegap-plugin-contentsync/pull/95
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/restouffer/cordova-plugin-file-transfer
patch-1
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/cordova-plugin-file-transfer/pull/126.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 #126
----
commit 0b9232a6db7c47e71140db6f7a6eac3ce3773c32
Author: restouffer <[email protected]>
Date: 2016-02-24T19:27:52Z
Handle URL redirects when downloading a file
Based on the work of mathieudutour:
https://github.com/phonegap/phonegap-plugin-contentsync/pull/95
----
---
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]