Merge pull request #14 from marcosbeirigo/master

Fix Rails 5.1 warnings
This commit is contained in:
James Hu 2016-10-28 15:51:04 -07:00 committed by GitHub
commit ca857033ca
1 changed files with 3 additions and 3 deletions

View File

@ -49,14 +49,14 @@ module ReverseProxy
if content_type and content_type.match /image/ if content_type and content_type.match /image/
send_data body, content_type: content_type, disposition: "inline", status: code send_data body, content_type: content_type, disposition: "inline", status: code
else else
render text: body, content_type: content_type, status: code render body: body, content_type: content_type, status: code
end end
end end
yield(config) if block_given? yield(config) if block_given?
end end
client.request(env, options) client.request(request.env, options)
end end
end end
end end