Project

General

Profile

« Previous | Next » 

Revision 5c3194e5

Added by Michael Moll about 4 years ago

Refs #29172 - Fix Layout/SpaceInsideBlockBraces cop

View differences:

modules/templates/proxy_request.rb
end
def extract_request_headers(env)
Hash[env.select {|k, v| k =~ /^HTTP_/ && k !~ /^HTTP_(VERSION|HOST)$/}.map {|k, v| [k[5..-1], v]}]
Hash[env.select { |k, v| k =~ /^HTTP_/ && k !~ /^HTTP_(VERSION|HOST)$/ }.map { |k, v| [k[5..-1], v] }]
rescue Exception => e
logger.warn "Unable to extract request headers: #{e}"
{}

Also available in: Unified diff