From 9173e86ee4c5d8610d2f96c91d14f7389d43cae7 Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Wed, 22 Mar 2017 15:52:21 +0800 Subject: [PATCH] Fix send_data for Windows platform #45 --- app/controllers/ru_captcha/captcha_controller.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/controllers/ru_captcha/captcha_controller.rb b/app/controllers/ru_captcha/captcha_controller.rb index 591e027..deca92b 100644 --- a/app/controllers/ru_captcha/captcha_controller.rb +++ b/app/controllers/ru_captcha/captcha_controller.rb @@ -6,12 +6,7 @@ module RuCaptcha headers['Pragma'] = 'no-cache' data = generate_rucaptcha opts = { disposition: 'inline', type: 'image/gif' } - - if Gem.win_platform? - send_file data, opts - else - send_data data, opts - end + send_data data, opts end end end