Skip to content

Introduce support for https: in util_http.#25

Open
bdruth wants to merge 2 commits into
danTapps:masterfrom
bdruth:master
Open

Introduce support for https: in util_http.#25
bdruth wants to merge 2 commits into
danTapps:masterfrom
bdruth:master

Conversation

@bdruth
Copy link
Copy Markdown

@bdruth bdruth commented Dec 30, 2022

Currently, the plugin doesn't support communicating with a Hubitat hub using SSL exclusively, as documented in this community post. This PR introduces support in util_http.js to detect that an https: URL protocol is configured in the plugin's app_url and makes the appropriate adjustments for that.

  • parse protocol from URL
  • use protocol to default app_port to 80 | 443
  • Use node's 'https' lib if protocol is https

* parse `protocol` from URL
* use protocol to default `app_port` to 80 | 443
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.

1 participant