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

Apply path.Join to the incoming URL #239

Conversation

ArFe
Copy link
Contributor

@ArFe ArFe commented Apr 22, 2022

Fix issue #238.
Compare apples to apples by applying path.Join to the incoming URL, as it happens to the internal path.

@codecov
Copy link

codecov bot commented Apr 22, 2022

Codecov Report

Merging #239 (1d624ea) into master (6a17228) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #239   +/-   ##
=======================================
  Coverage   80.06%   80.06%           
=======================================
  Files          42       42           
  Lines        3171     3171           
=======================================
  Hits         2539     2539           
  Misses        521      521           
  Partials      111      111           
Impacted Files Coverage Δ
middleware/swaggerui.go 86.79% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6a17228...1d624ea. Read the comment docs.

Compare apples to apples by applying path.Join to the incoming URL, as it happens to the internal path.

Signed-off-by: Ariel Ferreira <aferreira@bannerengineering.com>
@ArFe ArFe force-pushed the bug-fix-swagger-middleware-dropping-trailing-slash-not-finding-path branch from e7216d1 to 1d624ea Compare April 22, 2022 22:39
@casualjim casualjim merged commit 219a745 into go-openapi:master Apr 28, 2022
@ArFe ArFe deleted the bug-fix-swagger-middleware-dropping-trailing-slash-not-finding-path branch April 28, 2022 21:58
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