Revert Go middleware changes
What does this MR do and why?
This merge request reverts !95991 (merged) because it might be causing private projects to 404.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.