diff options
Diffstat (limited to 'lib/api/api.rb')
-rw-r--r-- | lib/api/api.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/api.rb b/lib/api/api.rb index ec252faa6cb..5a58f1adbc1 100644 --- a/lib/api/api.rb +++ b/lib/api/api.rb @@ -118,7 +118,7 @@ module API # There is a small chance some users depend on the old behavior. # We this change under a feature flag to see if affects GitLab.com users. - if Feature.enabled?(:api_json_content_type) + if Gitlab::Database.cached_table_exists?('features') && Feature.enabled?(:api_json_content_type) content_type :json, 'application/json' else content_type :txt, 'text/plain' |