Skip to content

Commit 2fc5b08

Browse files
authored
Fix wiki raw commit diff/patch view (#16891) (#16893)
1 parent 95d2744 commit 2fc5b08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/routes/web.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,7 @@ func RegisterRoutes(m *web.Route) {
912912
m.Get("/_pages", repo.WikiPages)
913913
m.Get("/{page}/_revision", repo.WikiRevision)
914914
m.Get("/commit/{sha:[a-f0-9]{7,40}}", repo.SetEditorconfigIfExists, repo.SetDiffViewStyle, repo.SetWhitespaceBehavior, repo.Diff)
915-
m.Get("/commit/{sha:[a-f0-9]{7,40}}.{:patch|diff}", repo.RawDiff)
915+
m.Get("/commit/{sha:[a-f0-9]{7,40}}.{ext:patch|diff}", repo.RawDiff)
916916

917917
m.Group("", func() {
918918
m.Combo("/_new").Get(repo.NewWiki).

0 commit comments

Comments
 (0)