@@ -711,8 +711,8 @@ func RegisterRoutes(m *web.Route) {
711711 m .Get ("/{id}" , repo .MilestoneIssuesAndPulls )
712712 }, reqRepoIssuesOrPullsReader , context .RepoRef ())
713713 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 )
716716 }, context .RepoAssignment (), context .UnitTypes ())
717717
718718 // Grouping for those endpoints that do require authentication
@@ -901,7 +901,7 @@ func RegisterRoutes(m *web.Route) {
901901 m .Get ("/{page}" , repo .Wiki )
902902 m .Get ("/_pages" , repo .WikiPages )
903903 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 )
905905 m .Get ("/commit/{sha:[a-f0-9]{7,40}}.{:patch|diff}" , repo .RawDiff )
906906
907907 m .Group ("" , func () {
@@ -993,7 +993,7 @@ func RegisterRoutes(m *web.Route) {
993993
994994 m .Group ("" , func () {
995995 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 )
997997 }, repo .MustBeNotEmpty , context .RepoRef (), reqRepoCodeReader )
998998
999999 m .Group ("/src" , func () {
0 commit comments