@@ -711,8 +711,8 @@ func RegisterRoutes(m *web.Route) {
711
711
m .Get ("/{id}" , repo .MilestoneIssuesAndPulls )
712
712
}, reqRepoIssuesOrPullsReader , context .RepoRef ())
713
713
m .Combo ("/compare/*" , repo .MustBeNotEmpty , reqRepoCodeReader , repo .SetEditorconfigIfExists ).
714
- Get (ignSignIn , repo .SetDiffViewStyle , repo .CompareDiff ).
715
- Post (reqSignIn , context .RepoMustNotBeArchived (), reqRepoPullsReader , repo .MustAllowPulls , bindIgnErr (auth.CreateIssueForm {}), repo .CompareAndPullRequestPost )
714
+ Get (ignSignIn , repo .SetDiffViewStyle , repo .SetWhitespaceBehavior , repo . CompareDiff ).
715
+ Post (reqSignIn , context .RepoMustNotBeArchived (), reqRepoPullsReader , repo .MustAllowPulls , bindIgnErr (auth.CreateIssueForm {}), repo .SetWhitespaceBehavior , repo . CompareAndPullRequestPost )
716
716
}, context .RepoAssignment (), context .UnitTypes ())
717
717
718
718
// Grouping for those endpoints that do require authentication
@@ -901,7 +901,7 @@ func RegisterRoutes(m *web.Route) {
901
901
m .Get ("/{page}" , repo .Wiki )
902
902
m .Get ("/_pages" , repo .WikiPages )
903
903
m .Get ("/{page}/_revision" , repo .WikiRevision )
904
- m .Get ("/commit/{sha:[a-f0-9]{7,40}}" , repo .SetEditorconfigIfExists , repo .SetDiffViewStyle , repo .Diff )
904
+ m .Get ("/commit/{sha:[a-f0-9]{7,40}}" , repo .SetEditorconfigIfExists , repo .SetDiffViewStyle , repo .SetWhitespaceBehavior , repo . Diff )
905
905
m .Get ("/commit/{sha:[a-f0-9]{7,40}}.{:patch|diff}" , repo .RawDiff )
906
906
907
907
m .Group ("" , func () {
@@ -993,7 +993,7 @@ func RegisterRoutes(m *web.Route) {
993
993
994
994
m .Group ("" , func () {
995
995
m .Get ("/graph" , repo .Graph )
996
- m .Get ("/commit/{sha:([a-f0-9]{7,40})$}" , repo .SetEditorconfigIfExists , repo .SetDiffViewStyle , repo .Diff )
996
+ m .Get ("/commit/{sha:([a-f0-9]{7,40})$}" , repo .SetEditorconfigIfExists , repo .SetDiffViewStyle , repo .SetWhitespaceBehavior , repo . Diff )
997
997
}, repo .MustBeNotEmpty , context .RepoRef (), reqRepoCodeReader )
998
998
999
999
m .Group ("/src" , func () {
0 commit comments