fix(data/clients/git): more strictly match the git client

Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
Xe Iaso
2025-10-09 14:49:00 +00:00
parent 9599cb8ea9
commit 40ab7da7ed
+8 -2
View File
@@ -10,5 +10,11 @@
userAgent.startsWith("JGit/") || userAgent.startsWith("JGit/") ||
userAgent.startsWith("JGit-") userAgent.startsWith("JGit-")
) )
- '"Git-Protocol" in headers' - '"Accept" in headers'
- headers["Git-Protocol"] == "version=2" - headers["Accept"] == "*/*"
- '"Cache-Control" in headers'
- headers["Cache-Control"] == "no-cache"
- '"Pragma" in headers'
- headers["Pragma"] == "no-cache"
- '"Accept-Encoding" in headers'
- headers["Accept-Encoding"].contains("gzip")