This repository was archived by the owner on Oct 8, 2025. It is now read-only.
Commit 2d7a846
committed
HTTP: Added variable validation to the response_headers option
This is to improve error messages for response headers configuration.
Take the configuration as an example:
{
"response_headers": {
"a": "$b"
}
}
Previously, when applying it the user would see this error message:
failed to apply previous configuration
After this change, the user will see this improved error message:
the previous configuration is invalid: Unknown variable "b" in the "a" value1 parent a625a0b commit 2d7a846
1 file changed
+12
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2572 | 2572 | | |
2573 | 2573 | | |
2574 | 2574 | | |
| 2575 | + | |
2575 | 2576 | | |
2576 | 2577 | | |
2577 | 2578 | | |
| |||
2588 | 2589 | | |
2589 | 2590 | | |
2590 | 2591 | | |
2591 | | - | |
| 2592 | + | |
| 2593 | + | |
| 2594 | + | |
| 2595 | + | |
| 2596 | + | |
| 2597 | + | |
| 2598 | + | |
| 2599 | + | |
| 2600 | + | |
| 2601 | + | |
| 2602 | + | |
2592 | 2603 | | |
2593 | 2604 | | |
2594 | 2605 | | |
| |||
0 commit comments