We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 45a3019 + dd30c5a commit 632b78bCopy full SHA for 632b78b
src/Swashbuckle.AspNetCore.SwaggerUI/SwaggerUIMiddleware.cs
@@ -61,7 +61,7 @@ public async Task Invoke(HttpContext httpContext)
61
return;
62
}
63
64
- if (httpMethod == "GET" && Regex.IsMatch(path, $"/{_options.RoutePrefix}/?index.html"))
+ if (httpMethod == "GET" && Regex.IsMatch(path, $"^/{_options.RoutePrefix}/?index.html$"))
65
{
66
await RespondWithIndexHtml(httpContext.Response);
67
0 commit comments