diff --git a/lib/reverse_proxy/controller.rb b/lib/reverse_proxy/controller.rb index 6185e3d..63b122e 100644 --- a/lib/reverse_proxy/controller.rb +++ b/lib/reverse_proxy/controller.rb @@ -49,14 +49,14 @@ module ReverseProxy if content_type and content_type.match /image/ send_data body, content_type: content_type, disposition: "inline", status: code else - render text: body, content_type: content_type, status: code + render body: body, content_type: content_type, status: code end end yield(config) if block_given? end - client.request(env, options) + client.request(request.env, options) end end -end \ No newline at end of file +end