更新「lib/roda/proxy.rb」

This commit is contained in:
chiu 2023-04-08 08:27:22 +00:00
parent 91f8230e28
commit 09661d9a0c
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ class Roda
req = request_class.new(_proxy_url.to_s, _proxy_headers)
env_body = env["rack.input"].read
env_content_type = env['CONTENT_TYPE']
secret_key_base = YAML.load(File.read(File.expand_path("../../../../config/secrets.yml",__FILE__)))['production']['secret_key_base']
#secret_key_base = YAML.load(File.read(File.expand_path("../../../../config/secrets.yml",__FILE__)))['production']['secret_key_base']
unless env_body.nil?
req.body = env_body
end