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

improve get protocol method for https #978

Merged
merged 1 commit into from
Apr 12, 2024
Merged

improve get protocol method for https #978

merged 1 commit into from
Apr 12, 2024

Conversation

JacksonTian
Copy link
Contributor

No description provided.

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 88.09524% with 10 lines in your changes are missing coverage. Please review.

Project coverage is 79.01%. Comparing base (0c08ad2) to head (39725db).
Report is 2 commits behind head on master.

Files Patch % Lines
openapi/force_rpc.go 58.33% 4 Missing and 1 partial ⚠️
openapi/rpc.go 25.00% 2 Missing and 1 partial ⚠️
openapi/restful.go 50.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #978      +/-   ##
==========================================
- Coverage   79.06%   79.01%   -0.05%     
==========================================
  Files          47       47              
  Lines        4050     4103      +53     
==========================================
+ Hits         3202     3242      +40     
- Misses        713      723      +10     
- Partials      135      138       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

openapi/rpc.go Outdated
@@ -38,6 +38,11 @@ func (a *RpcInvoker) Prepare(ctx *cli.Context) error {
request.Scheme = api.GetProtocol()
request.Method = api.GetMethod()

// if `--insecure` assigned, use https
if _, ok := InsecureFlag(ctx.Flags()).GetValue(); ok {
a.request.Scheme = "https"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里是不是指http

@JacksonTian JacksonTian merged commit 04c89dc into master Apr 12, 2024
6 checks passed
@JacksonTian JacksonTian deleted the https branch April 12, 2024 10:15
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.

None yet

3 participants