Skip to content

Commit 8d2f743

Browse files
author
Giovanni Bonetti
authored
Fix issue with RequestURI that arises in tests
1 parent 3a7ae30 commit 8d2f743

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swagger.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ func Handler(configFns ...func(*Config)) http.HandlerFunc {
191191
return
192192
}
193193

194-
matches := re.FindStringSubmatch(r.RequestURI)
194+
matches := re.FindStringSubmatch(r.URL.Path)
195195

196196
path := matches[2]
197197

0 commit comments

Comments
 (0)