@@ -695,8 +695,8 @@ func RegisterRoutes(m *web.Route) {
695695 m .Get ("/{id}" , repo .MilestoneIssuesAndPulls )
696696 }, reqRepoIssuesOrPullsReader , context .RepoRef ())
697697 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 )
700700 }, context .RepoAssignment (), context .UnitTypes ())
701701
702702 // Grouping for those endpoints that do require authentication
@@ -885,7 +885,7 @@ func RegisterRoutes(m *web.Route) {
885885 m .Get ("/{page}" , repo .Wiki )
886886 m .Get ("/_pages" , repo .WikiPages )
887887 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 )
889889 m .Get ("/commit/{sha:[a-f0-9]{7,40}}.{:patch|diff}" , repo .RawDiff )
890890
891891 m .Group ("" , func () {
@@ -977,7 +977,7 @@ func RegisterRoutes(m *web.Route) {
977977
978978 m .Group ("" , func () {
979979 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 )
981981 }, repo .MustBeNotEmpty , context .RepoRef (), reqRepoCodeReader )
982982
983983 m .Group ("/src" , func () {
0 commit comments