lib/coach/request_serializer.rb in coach-2.3.0 vs lib/coach/request_serializer.rb in coach-3.0.0
- old
+ new
@@ -62,10 +62,10 @@
def filtered_headers
header_value_pairs = @request.filtered_env.map do |key, value|
key = if RACK_UNPREFIXED_HEADERS.include?(key)
"http_#{key.downcase}"
- elsif key.match?(/^HTTP_/)
+ elsif key.start_with?("HTTP_")
key.downcase
end
[key, self.class.apply_header_rule(key, value)] if key
end.compact