Fix send_data for Windows platform #45

This commit is contained in:
Jason Lee 2017-03-22 15:52:21 +08:00
parent 81e4e0bda6
commit 9173e86ee4
1 changed files with 1 additions and 6 deletions

View File

@ -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
end
end
end