This repository was archived by the owner on Nov 26, 2024. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change somewhat invalidates the feature name. Also I would have expected "start supporting HTTPS" to require more changes than this - did you test this works?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, for the
minreq
backend, enablehttps
feature would work for https. I tested it, it works.I don't quite understand, you mean "minreq_http" has "https" feature make it inappropriate?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HTTP is not HTTPS so having a feature called
minreq_http
that does HTTPS stuff is wrong IMO. I didn't look deeply into it but a bunch of other things are also done with the assumption that we do not support HTTPS (eg, module names, docs etc).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To clarify, I'm not opposed to the idea, and appreciate you raising a PR, but if we are going to do it we should do it properly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, my PR can be regarded as a simple starting point. If people who use this library encounter the error
JsonRpc(Transport(Minreq(HttpsFeatureNotEnabled)))
when connecting to https in bitcoind service, they can temporarily use my method to solve it.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Damn, I wish you put that error message and the explanation of why you raised the PR in the original message, the conversation would have been totally different. Anyways, thanks for bringing it up and thanks for using the lib!