Skip to content

Fix mime-type for json files to "application/json" to avoid errors in requesting applications

panticz.de requested to merge panticz/gitlab-ce:patch-33 into master

What does this MR do?

Json files are delivered by GitLab as content-type "text/plain" which is considered by some applications as error and they may refuse further processing of the content.

The standardized mime type for json files is "application/json".

This patch fix the mime type of the json files and allow to access those by exernal applications like Rundeck (Allowed Values > Remote URL with currently) with currently exits with the error:

Failed loading remote option values 
Exception: java.lang.Exception: Unexpected content type received: text/plain; charset=utf-8

What are the relevant issue numbers?

Does this MR meet the acceptance criteria?

Edited by panticz.de

Merge request reports