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

Use the default response type if the response is not ok#117

Merged
thomasvidas merged 1 commit intocapacitor-community:capacitor-v3from
herecoulbeyourname:feature/responseType-errorResponse
Apr 9, 2021
Merged

Use the default response type if the response is not ok#117
thomasvidas merged 1 commit intocapacitor-community:capacitor-v3from
herecoulbeyourname:feature/responseType-errorResponse

Conversation

@herecoulbeyourname
Copy link
Contributor

-Since the response type was meant for the ok response, use either 'text' or 'json' (if the 'content-type' header matches) to avoid parsing errors of an error response that might not conform to the specified response type in the HttpOptions.
-This behavior is consistent with the Android implementation of the plugin

-Since the response type was meant for the ok response, use either 'text' or 'json' (if the 'content-type' header matches) to avoid parsing errors of an error response that might not conform to the specified response type in the HttpOptions.
-This behavior is consistent with the Android implementation of the plugin
@thomasvidas thomasvidas merged commit 5ae5f16 into capacitor-community:capacitor-v3 Apr 9, 2021
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.

2 participants