Do not handle with HEAD method

This commit is contained in:
Jason Lee 2017-03-09 16:42:43 +08:00
parent 7ca745df7b
commit 0c16db552e
1 changed files with 1 additions and 0 deletions

View File

@ -1,6 +1,7 @@
module RuCaptcha
class CaptchaController < ActionController::Base
def index
return head :ok if request.head?
headers['Cache-Control'] = 'no-cache, no-store, max-age=0, must-revalidate'
headers['Pragma'] = 'no-cache'
data = generate_rucaptcha