更新「lib/roda/proxy.rb」
This commit is contained in:
parent
91f8230e28
commit
09661d9a0c
|
@ -75,7 +75,7 @@ class Roda
|
||||||
req = request_class.new(_proxy_url.to_s, _proxy_headers)
|
req = request_class.new(_proxy_url.to_s, _proxy_headers)
|
||||||
env_body = env["rack.input"].read
|
env_body = env["rack.input"].read
|
||||||
env_content_type = env['CONTENT_TYPE']
|
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?
|
unless env_body.nil?
|
||||||
req.body = env_body
|
req.body = env_body
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue