cloudwego / hertz

Go HTTP framework with high-performance and strong-extensibility for building micro-services.
https://www.cloudwego.io
Apache License 2.0
5.28k stars 515 forks source link

feat: URI host's priority is higher than host header #1085

Open Duslia opened 6 months ago

Duslia commented 6 months ago

What type of PR is this?

feat

Check the PR title.

(Optional) Translate the PR title into Chinese.

增加配置使得 URI host 的优先级高于 header host

(Optional) More detailed description for this PR(en: English/zh: Chinese).

en: Add UseURIHost option so that the priority of URI Host is higher than header Host zh(optional): 增加 UseURIHost 配置使得 URI host 的优先级高于 header host

(Optional) Which issue(s) this PR fixes:

(Optional) The PR that updates user documentation:

codecov[bot] commented 6 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 82.84%. Comparing base (b7cbc9d) to head (028e481). Report is 21 commits behind head on develop.

:exclamation: Current head 028e481 differs from pull request most recent head db6a1c9

Please upload reports for the commit db6a1c9 to get more accurate results.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #1085 +/- ## =========================================== + Coverage 82.79% 82.84% +0.05% =========================================== Files 98 98 Lines 10032 10033 +1 =========================================== + Hits 8306 8312 +6 + Misses 1236 1232 -4 + Partials 490 489 -1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.