lib/api_proxy/config.rb in api_proxy-0.2.7 vs lib/api_proxy/config.rb in api_proxy-0.2.8
- old
+ new
@@ -6,11 +6,12 @@
:api_secret,
:api_url,
:request_starts_with,
:request_allowed,
:custom_headers,
- :reject_params
+ :reject_params,
+ :allowed_headers
def initialize
load_defaults
end
@@ -26,8 +27,17 @@
@request_allowed = ->(_env) { true }
@custom_headers = ->(_env) { {} }
@reject_params = %w[utf8 authenticity_token commit format controller action]
+
+ @allowed_headers = %w[
+ content-type
+ etag
+ cache-control
+ content-length
+ content-disposition
+ content-transfer-encoding
+ ]
end
end
end