@@ -695,8 +695,8 @@ func RegisterRoutes(m *web.Route) {
695
695
m .Get ("/{id}" , repo .MilestoneIssuesAndPulls )
696
696
}, reqRepoIssuesOrPullsReader , context .RepoRef ())
697
697
m .Combo ("/compare/*" , repo .MustBeNotEmpty , reqRepoCodeReader , repo .SetEditorconfigIfExists ).
698
- Get (ignSignIn , repo .SetDiffViewStyle , repo .CompareDiff ).
699
- Post (reqSignIn , context .RepoMustNotBeArchived (), reqRepoPullsReader , repo .MustAllowPulls , bindIgnErr (auth.CreateIssueForm {}), repo .CompareAndPullRequestPost )
698
+ Get (ignSignIn , repo .SetDiffViewStyle , repo .SetWhitespaceBehavior , repo . CompareDiff ).
699
+ Post (reqSignIn , context .RepoMustNotBeArchived (), reqRepoPullsReader , repo .MustAllowPulls , bindIgnErr (auth.CreateIssueForm {}), repo .SetWhitespaceBehavior , repo . CompareAndPullRequestPost )
700
700
}, context .RepoAssignment (), context .UnitTypes ())
701
701
702
702
// Grouping for those endpoints that do require authentication
@@ -885,7 +885,7 @@ func RegisterRoutes(m *web.Route) {
885
885
m .Get ("/{page}" , repo .Wiki )
886
886
m .Get ("/_pages" , repo .WikiPages )
887
887
m .Get ("/{page}/_revision" , repo .WikiRevision )
888
- m .Get ("/commit/{sha:[a-f0-9]{7,40}}" , repo .SetEditorconfigIfExists , repo .SetDiffViewStyle , repo .Diff )
888
+ m .Get ("/commit/{sha:[a-f0-9]{7,40}}" , repo .SetEditorconfigIfExists , repo .SetDiffViewStyle , repo .SetWhitespaceBehavior , repo . Diff )
889
889
m .Get ("/commit/{sha:[a-f0-9]{7,40}}.{:patch|diff}" , repo .RawDiff )
890
890
891
891
m .Group ("" , func () {
@@ -977,7 +977,7 @@ func RegisterRoutes(m *web.Route) {
977
977
978
978
m .Group ("" , func () {
979
979
m .Get ("/graph" , repo .Graph )
980
- m .Get ("/commit/{sha:([a-f0-9]{7,40})$}" , repo .SetEditorconfigIfExists , repo .SetDiffViewStyle , repo .Diff )
980
+ m .Get ("/commit/{sha:([a-f0-9]{7,40})$}" , repo .SetEditorconfigIfExists , repo .SetDiffViewStyle , repo .SetWhitespaceBehavior , repo . Diff )
981
981
}, repo .MustBeNotEmpty , context .RepoRef (), reqRepoCodeReader )
982
982
983
983
m .Group ("/src" , func () {
0 commit comments