• Daniel Stone's avatar
    Fix API requests for branch names ending in .txt · 39c7cae9
    Daniel Stone authored
    Similar to gitlab-foss!13174 for files, Grape would try to return a
    text result when the branch name ended in '.txt'. Fix this by forcing it
    to always return JSON results for branches, no matter what the name.
    
    Fixes: #217097
    39c7cae9
branches.rb 6.6 KB