Skip to content
This repository was archived by the owner on Sep 26, 2022. It is now read-only.

Add support for disabling automatic HTTP redirects on android/ios#157

Merged
thomasvidas merged 3 commits intocapacitor-community:masterfrom
FelixSchwarzmeier:add-disableRedirects
Aug 11, 2021
Merged

Add support for disabling automatic HTTP redirects on android/ios#157
thomasvidas merged 3 commits intocapacitor-community:masterfrom
FelixSchwarzmeier:add-disableRedirects

Conversation

@FelixSchwarzmeier
Copy link
Contributor

This PR adds support for disabling automatic HTTP redirects on android/ios by setting the "disableRedirects" property in the HttpOptions object.
This functionality is already provided by the Cordova HTTP plugin cordova-plugin-advanced-http.

@thomasvidas
Copy link
Contributor

Thanks for both of your contributions @FelixSchwarzmeier 😄

@johnborges
Copy link

Thanks for this! This feature was the one thing preventing me from migrating an app that used cordova-plugin-advanced-http

@FelixSchwarzmeier
Copy link
Contributor Author

Awesome, glad this PR helped!:)

shanselm-ergon pushed a commit to ergon/http that referenced this pull request Sep 24, 2021
…os (capacitor-community#157)

* Update HttpOptions
* Add support for disabling automatic HTTP redirects on android
* Add support for disabling automatic HTTP redirects on ios
thomasvidas added a commit that referenced this pull request Nov 9, 2021
* Add data to the request if they are present. Don't fail based on the HTTP method (each HTTP method may have a body or not).

* Update README

Add note that we use ergon-master branch

* Update HttpRequestHandler.swift

Adjust data handling in the ios HttpRequestHandler to check the data, if available, for correctness and fail otherwise.

* Update HttpRequestHandler.swift

Remove duplicat code, sorry for that.

* Replace throw with reject for safety reasons

* Add data to the request if they are present. Don't fail based on the HTTP method (each HTTP method may have a body or not).

* Update HttpRequestHandler.swift

Adjust data handling in the ios HttpRequestHandler to check the data, if available, for correctness and fail otherwise.

* Update HttpRequestHandler.swift

Remove duplicat code, sorry for that.

* fix(iOS): pass http method to request functions on ios (#152)

* chore: release 1.1.1

* release: 1.1.2

* chore(iOS): remove local pods from project
* refactor: add postbuild script to install up to date pods
* refactor: change postbuild to prepublishOnly
* release: release 1.1.2

* refactor(android): JavaDoc and code cleanup

* fix(iOS): Add "getCookie" as plugin method for ios (#156)

* feat: Add support for disabling automatic HTTP redirects on android/ios (#157)

* Update HttpOptions
* Add support for disabling automatic HTTP redirects on android
* Add support for disabling automatic HTTP redirects on ios

* fix: default content-type consistent with native impl (#158)

* release: 1.2.0

* Replace throw with reject for safety reasons

* Revert "Update README"

This reverts commit aa6d19e.

* feat(web): pass-through string-type requests

* fix(ios): fix crash on json serialization failure

* feat(ios): write string body as-is

Co-authored-by: Stefan Hanselmann <stefan.hanselmann@ergon.ch>
Co-authored-by: graefenhain <88032701+graefenhain@users.noreply.github.com>
Co-authored-by: Stefan Hanselmann <69970522+shanselm-ergon@users.noreply.github.com>
Co-authored-by: Joe Flateau <joe@joeflateau.net>
Co-authored-by: Thomas Vidas <hello@thomasvidas.com>
Co-authored-by: Thomas Vidas <thomasvidas@users.noreply.github.com>
Co-authored-by: Felix Schwarzmeier <felixsla21@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants