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

fix: 修复,当endpoint携带path前缀时的url请求路径 #3216

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

wuxingzhong
Copy link
Contributor

例:

http.WithEndpoint("https://127.0.0.1:443/api")

image

url中的结果,少拼接了api.

该pr修复这个问题, 看是否合理.

@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Feb 28, 2024
@codecov-commenter
Copy link

codecov-commenter commented Feb 28, 2024

Codecov Report

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

Project coverage is 84.68%. Comparing base (9106991) to head (8ed132f).

❗ Current head 8ed132f differs from pull request most recent head cc2aa0a. Consider uploading reports for the commit cc2aa0a to get more accurate results

Files Patch % Lines
transport/http/client.go 50.00% 1 Missing and 1 partial ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3216      +/-   ##
==========================================
+ Coverage   84.62%   84.68%   +0.06%     
==========================================
  Files          88       88              
  Lines        3993     3996       +3     
==========================================
+ Hits         3379     3384       +5     
+ Misses        440      439       -1     
+ Partials      174      173       -1     

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

Copy link
Member

@shenqidebaozi shenqidebaozi left a comment

Choose a reason for hiding this comment

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

Need to test if it affects service discovery

@Vickko
Copy link

Vickko commented Nov 11, 2024

你好,请问这个问题有进展吗?现在所有endpoint都会丢失基础url之后的内容,导致使用http client时没有较好办法处理这个问题 @shenqidebaozi

@kratos-ci-bot
Copy link
Collaborator

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Hello, is there any progress on this issue? Now all endpoints will lose the content after the basic URL, resulting in no better way to deal with this problem when using http client @shenqidebaozi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants