Skip to content

Commit

Permalink
cleanup(API): RHINENG-15696 remove comensation for branch_id parameter
Browse files Browse the repository at this point in the history
              parameter has been excluded in
              theforeman/foreman_rh_cloud@792a0d1
  • Loading branch information
romanblanco committed Mar 3, 2025
1 parent f4d3208 commit 177eea7
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/insights/api/common/satellite_compensation/middleware.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ def call(env)
# Sometimes Satellite forwards the client requests with an empty string
# as content-type and Rails does not like it.
env['CONTENT_TYPE'] = nil if env['CONTENT_TYPE'] == ''

# There is an additional branch_id parameter coming from Satellite that
# fails on the stricter checking of params in our REST API.
Rack::Request.new(env).delete_param('branch_id')
end

@app.call(env)
Expand Down

0 comments on commit 177eea7

Please sign in to comment.