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

deleted deprecated test setting /request_headers.rb

Aleix Suau0c2b9e1d60fd
diff --git a/lib/request_headers.rb b/lib/request_headers.rb
deleted file mode 100644
index 8450450ac50..00000000000
--- a/lib/request_headers.rb
+++ /dev/null
@@ -1,24 +0,0 @@
-class CustomHeadersHelper
- cattr_accessor :headers
-end
-
-class RequestHeaders
- def initialize(app, helper = nil)
- @app = app
- @helper = helper
- end
-
- def call(env)
- if @helper
- headers = @helper.headers
-
- if headers.is_a?(Hash)
- headers.each do |k, v|
- env["HTTP_#{k.upcase.gsub('-', '_')}"] = v
- end
- end
- end
-
- @app.call(env)
- end
-end