Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Force application/json in redirect to job status

Oliver Günthere7485138b1ea
diff --git a/lib/api/v3/utilities/endpoints/delayed_modify.rb b/lib/api/v3/utilities/endpoints/delayed_modify.rb
index 790ab60b709..4b74b98c826 100644
--- a/lib/api/v3/utilities/endpoints/delayed_modify.rb
+++ b/lib/api/v3/utilities/endpoints/delayed_modify.rb
@@ -42,6 +42,7 @@ module API
def redirect_to_status(request, job)
request.redirect api_v3_paths.job_status(job.job_id)
+ request.content_type 'application/json'
end
end
end