diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2025-05-13 11:48:52 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2025-05-13 12:06:35 +0200 |
commit | 4da202de2e291a061a7c661bda2e7f1b3dfa28b6 (patch) | |
tree | aee0fe42650323f45d9d6a0bff45b2bb4ffce313 /doc | |
parent | 2036132fe7d9c499d52499e66f7e39c995b57b89 (diff) | |
download | justbuild-4da202de2e291a061a7c661bda2e7f1b3dfa28b6.tar.gz |
Invocation server: fix hash pattern
Currently the support hashes are SHA-1 (for git hashes), which has 160 bits and
SHA-256 which has 256 bits. Therefore, we expect either 40 or 64 hex digits.
Diffstat (limited to 'doc')
-rwxr-xr-x | doc/invocations-http-server/server.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/invocations-http-server/server.py b/doc/invocations-http-server/server.py index bb9d2260..05832ada 100755 --- a/doc/invocations-http-server/server.py +++ b/doc/invocations-http-server/server.py @@ -35,7 +35,7 @@ class HexIdentifierConverter(werkzeug.routing.BaseConverter): regex = '[a-zA-Z0-9]{2,300}' class HashIdentifierConverter(werkzeug.routing.BaseConverter): - regex = '[a-zA-Z0-9]{40,51}' + regex = '[a-zA-Z0-9]{40,64}' class InvocationIdentifierConverter(werkzeug.routing.BaseConverter): regex = '[-:_a-zA-Z0-9]{1,200}' |