Skip to content

Apply path.Join to the incoming URL - #239

Merged
casualjim merged 1 commit into
go-openapi:masterfrom
ArFe:bug-fix-swagger-middleware-dropping-trailing-slash-not-finding-path
Apr 28, 2022
Merged

casualjim merged 1 commit into
go-openapi:masterfrom
ArFe:bug-fix-swagger-middleware-dropping-trailing-slash-not-finding-path

Conversation

@ArFe

@ArFe ArFe commented Apr 22, 2022

Copy link
Copy Markdown
Contributor

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

@codecov

codecov Bot commented Apr 22, 2022 •

Copy link
Copy Markdown

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 <[email protected]>
@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.

3 participants