caddytest/integration/testdata/issue_7518_unused_block_panic_snippets.conf
raw| 1 | # Used by import_block_snippet_non_replaced_block_from_separate_file.caddyfiletest |
| 2 | |
| 3 | (snippet) { |
| 4 | header { |
| 5 | reverse_proxy localhost:3000 |
| 6 | {block} |
| 7 | } |
| 8 | } |
| 9 | |
| 10 | # This snippet being unused by the test Caddyfile is intentional. |
| 11 | # This is to test that a panic runtime error triggered by an out-of-range slice index access |
| 12 | # will not happen again, please see issue #7518 and pull request #7543 for more information |
| 13 | (unused_snippet) { |
| 14 | header SomeHeader SomeValue |
| 15 | } |