Fix missing self parameter in request_is_secure method definition