Do not handle with HEAD method
This commit is contained in:
parent
7ca745df7b
commit
0c16db552e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue