lib/simple_captcha/middleware.rb in glebtv-simple_captcha-0.6.4 vs lib/simple_captcha/middleware.rb in glebtv-simple_captcha-0.6.5
- old
+ new
@@ -29,10 +29,10 @@
if !code.blank? && Utils::simple_captcha_value(code)
return send_file(generate_simple_captcha_image(code), :type => 'image/jpeg', :disposition => 'inline', :filename => 'simple_captcha.jpg')
else
[500, {
"Content-Type" => 'text/plain',
- }, "captcha error"]
+ }, ["captcha error"]]
end
end
def captcha_path?(request_path)
request_path.include?('/simple_captcha')