Skip to content

Fixes #23246 - branches/tags end with txt product invalid response

Khoi Nguyen requested to merge khoinqq/gitlab-ce:bugs/23246 into master

What does this MR do?

Fix the invalid API single branches/tags response if it ends with .txt

Are there points in the code the reviewer needs to double check?

Should not. I only enforce the content type of those 2 APIs to application/json, should not have any side effect to others.

Why was this MR needed?

https://gitlab.com/gitlab-org/gitlab-ce/issues/23246

Screenshots (if relevant)

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

https://gitlab.com/gitlab-org/gitlab-ce/issues/23246

Merge request reports