-
Notifications
You must be signed in to change notification settings - Fork 13.8k
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
Use correct case for SSL option #12168
Conversation
@@ -448,16 +448,18 @@ def reconfig_redirect_opts!(res, opts) | |||
|
|||
opts['ssl'] = ssl |
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.
There's another one up here right?
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.
I think this line is basically a no-op because it will never differ from the previous request.
The oddity also is that send_request_cgi says:
and Rex::Proto::Http::Client also uses opts['ssl'] lowercase, or at least sets that internally, but maybe that value not actually used, and instead it's self.ssl? Seems like those would also be upper-case converted. Agree this fixes a bug, but maybe a few others scurry out of the light when looking at this closer! |
This is handled, usually, by Socket:: Parameters, which IIRC will take both upper and lowercase for this. Need to double check that, as my recollection is from params refactoring for sslclient params a while back. |
Travis error looks like an unrelated network problem on Travis's end. |
Added bd90241 for consistency within the function, even if is a no-op. |
Release NotesThis fixes redirection to an HTTPS url from an HTTP url with the HTTP client library. |
Fix redirection to an HTTPS url from an HTTP url.
Verification
List the steps needed to make sure this thing works
make an aux module with a run method like
opts['SSL']
is true