Skip to content
This repository has been archived by the owner on Jul 12, 2019. It is now read-only.

Fix bug: Can't use unencrypted http:// protocol when SSL checks are disabled #135

Merged
merged 1 commit into from
Jan 9, 2019

Conversation

eliangcs
Copy link
Member

@eliangcs eliangcs commented Jan 8, 2019

If a user disables the SSL checks in their settings:

then the user can only send https:// requests. Any unencrypted http:// requests will cause an error saying:

Protocol "http:" not supported. Expected "https:"

The root cause is that we check if a user disables their SSL checks here, where we use https.Agent for all requests. Instead, we should use https.Agent only if it's an https:// requests.

Fixes PDE-625.

@eliangcs eliangcs requested a review from xavdid January 8, 2019 06:36
@eliangcs eliangcs merged commit 1650968 into master Jan 9, 2019
@eliangcs eliangcs deleted the fix-unencrypted-requests branch January 9, 2019 03:23
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