GitHub user jumangee opened a pull request:
https://github.com/apache/cordova-plugin-file-transfer/pull/190
[Android] Handle redirects when downloading a file (actual)
Then FileTransfer download gets 301 or 302 redirect it storps 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 https://github.com/apache/cordova-plugin-file-transfer/pull/126
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/jumangee/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/190.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 #190
----
commit 0f2f9a058a9cfe612fb0a625eea389ad9c8f8434
Author: jumangee <[email protected]>
Date: 2017-09-04T10:57:58Z
[Android] Handle redirects when downloading a file (actual)
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]