plugins/main/main.rb in rsence-pre-2.2.0.27 vs plugins/main/main.rb in rsence-pre-2.2.0.28
- old
+ new
@@ -119,12 +119,12 @@
### Servlet features; responds to GET / as well as POST /hello/goodbye
# @private Internal structures, matches the "hello/goodbye" session termination POST request and the "/" index html page GET request
def match( uri, method )
- if uri == ::RSence.config[:index_html][:respond_address] and method == :get
+ if uri == ::RSence.config[:index_html][:respond_address] and ( method == :get or method == :head )
return true
- elsif req_type == :post and uri == @goodbye_uri
+ elsif method == :post and uri == @goodbye_uri
return true
else
return false
end
end