From b457de4bb3529804f034391e4f1bb584b4bdfcbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Sun, 14 Jun 2026 07:39:02 +0400 Subject: [PATCH] =?UTF-8?q?debug:=20=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80?= =?UTF-8?q?=D0=BA=D0=B0=20h2/httpx=20=D0=B2=20/test=20debug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- site/test_routes.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/site/test_routes.py b/site/test_routes.py index 2213d4d..abc43e1 100644 --- a/site/test_routes.py +++ b/site/test_routes.py @@ -120,6 +120,17 @@ def test(): vars_info[k] = f"{v[:6]}... (len={len(v)})" if v else "(empty)" elif any(x in k.upper() for x in ("DB_", "LLM_", "FLASK", "PORT")): vars_info[k] = v + # добавим проверку h2 и httpx + try: + import h2 + vars_info["h2_available"] = True + except ImportError: + vars_info["h2_available"] = False + try: + import httpx + vars_info["httpx_version"] = httpx.__version__ + except ImportError: + vars_info["httpx_version"] = "not installed" return jsonify({"env": vars_info, "python": _os.sys.version}) return jsonify({"error": f"unknown action: {action}"}), 400