dify/api/tests
EvanYao826 d03d958d49 fix: stop auth header prefix accumulating on repeated Custom Tool calls
When a Custom Tool uses API Key authentication with a Bearer or Basic
prefix, assembling_request mutated runtime.credentials in-place,
prepending the prefix to api_key_value on every call. Subsequent
invocations would read the already-prefixed value and prefix it again,
producing headers like "Bearer Bearer Bearer token".

Use a local variable instead of writing back to the shared credentials
dict, so the stored value is never modified.

Fixes #35974
2026-05-10 21:33:57 +08:00
..
fixtures/workflow fix(api): defer streaming response until referenced variables are updated (#30832) 2026-01-12 16:23:18 +08:00
integration_tests chore(api): upgrade graphon to v0.3.0 (#35469) 2026-05-09 07:30:03 +00:00
test_containers_integration_tests chore: api para type (#35985) 2026-05-10 06:04:42 +00:00
unit_tests fix: stop auth header prefix accumulating on repeated Custom Tool calls 2026-05-10 21:33:57 +08:00
__init__.py refactor: move vdb implementations to workspaces (#34900) 2026-04-13 08:56:43 +00:00
conftest.py refactor(workflow-file): move core.file to core.workflow.file (#32252) 2026-02-16 22:38:19 +08:00
workflow_test_utils.py chore: reorg imports (#35308) 2026-04-16 08:50:02 +00:00