Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simpleHTTP: Catch exception from failHTTPS and turn it into Result #103

Closed
wants to merge 2 commits into from
Closed

simpleHTTP: Catch exception from failHTTPS and turn it into Result #103

wants to merge 2 commits into from

Conversation

oherrala
Copy link

@oherrala oherrala commented Jun 5, 2016

failHTTPS throws Exception when trying to connect to HTTPS. Catch this and return error as Result with message from IOException instead.

Fix unit test to comply with changed behaviour.

This pull request builds on top of pull request #102 .

Fixes #77

oherrala added 2 commits June 5, 2016 21:03
openStream can fail for example when connecting to host fails. Catch
this and return error as Result with message from IOException instead.

While there, remove unnecessary normalizeRequest since it's called in
simpleHTTP_.

Fixes #92
failHTTPS throws Exception when trying to connect to HTTPS. Catch this
and return error as Result with message from IOException instead.

Fix unit test to comply with changed behaviour.

Fixes #77
@oherrala oherrala changed the title Catch exception from failHTTPS and turn it into Result simpleHTTP: Catch exception from failHTTPS and turn it into Result Jun 5, 2016
@oherrala oherrala closed this Jul 5, 2019
@oherrala oherrala deleted the fix-issue77 branch July 5, 2019 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

simpleHTTP raises exception on "https"
1 participant