From c26f5c6ee3b1796e2c5c3732bba7cc36b96b0abd Mon Sep 17 00:00:00 2001 From: Jack Zhang Date: Wed, 28 Nov 2018 18:07:40 -0800 Subject: [PATCH] Rename `check_compatibility` to `check_global_compatibility`. --- zerver/views/compatibility.py | 2 +- zproject/urls.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/zerver/views/compatibility.py b/zerver/views/compatibility.py index b583c754f9..274ae0812e 100644 --- a/zerver/views/compatibility.py +++ b/zerver/views/compatibility.py @@ -5,7 +5,7 @@ from typing import Any, List, Dict, Optional from zerver.lib.response import json_error, json_success from zerver.lib.user_agent import parse_user_agent -def check_compatibility(request: HttpRequest) -> HttpResponse: +def check_global_compatibility(request: HttpRequest) -> HttpResponse: user_agent = parse_user_agent(request.META["HTTP_USER_AGENT"]) if user_agent['name'] == "ZulipInvalid": return json_error("Client is too old") diff --git a/zproject/urls.py b/zproject/urls.py index fb06e6d116..520a30542c 100644 --- a/zproject/urls.py +++ b/zproject/urls.py @@ -599,7 +599,7 @@ urls += [ # Used as a global check by all mobile clients, which currently send # requests to https://zulipchat.com/compatibility almost immediately after # starting up. - url(r'^compatibility$', zerver.views.compatibility.check_compatibility), + url(r'^compatibility$', zerver.views.compatibility.check_global_compatibility), # This json format view used by the mobile apps accepts a username # password/pair and returns an API key.