diff options
author | Francis Lavoie <lavofr@gmail.com> | 2022-03-25 00:48:45 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-24 22:48:45 -0600 |
commit | 4b75f3e2f09b77b98783ea4d6602391c7283f984 (patch) | |
tree | e7c7ac68516db60cc1c74e6174bb35dc42a86d10 /caddytest/integration/caddyfile_adapt/sort_directives_within_handle.txt | |
parent | b8dbecb841bef1f1ec67419b871d23d66af7a3b1 (diff) |
chore: Clean up adapt test line endings (#4660)
Lots of the files were using CRLF instead of LF. Mostly my fault cause sometimes I make the files on Windows and VSCode for some reason kept making them with the wrong line endings. Sigh.
Since .txt files typically default to spaces for indentation, I'm also adding an .editorconfig to ensure they use tabs instead
Diffstat (limited to 'caddytest/integration/caddyfile_adapt/sort_directives_within_handle.txt')
-rw-r--r-- | caddytest/integration/caddyfile_adapt/sort_directives_within_handle.txt | 264 |
1 files changed, 132 insertions, 132 deletions
diff --git a/caddytest/integration/caddyfile_adapt/sort_directives_within_handle.txt b/caddytest/integration/caddyfile_adapt/sort_directives_within_handle.txt index 10ff6da..0cf9d88 100644 --- a/caddytest/integration/caddyfile_adapt/sort_directives_within_handle.txt +++ b/caddytest/integration/caddyfile_adapt/sort_directives_within_handle.txt @@ -1,133 +1,133 @@ -*.example.com {
- @foo host foo.example.com
- handle @foo {
- handle_path /strip* {
- respond "this should be first"
- }
- handle {
- respond "this should be second"
- }
- }
- handle {
- respond "this should be last"
- }
-}
-----------
-{
- "apps": {
- "http": {
- "servers": {
- "srv0": {
- "listen": [
- ":443"
- ],
- "routes": [
- {
- "match": [
- {
- "host": [
- "*.example.com"
- ]
- }
- ],
- "handle": [
- {
- "handler": "subroute",
- "routes": [
- {
- "group": "group5",
- "handle": [
- {
- "handler": "subroute",
- "routes": [
- {
- "group": "group2",
- "handle": [
- {
- "handler": "subroute",
- "routes": [
- {
- "handle": [
- {
- "handler": "rewrite",
- "strip_path_prefix": "/strip"
- }
- ]
- },
- {
- "handle": [
- {
- "body": "this should be first",
- "handler": "static_response"
- }
- ]
- }
- ]
- }
- ],
- "match": [
- {
- "path": [
- "/strip*"
- ]
- }
- ]
- },
- {
- "group": "group2",
- "handle": [
- {
- "handler": "subroute",
- "routes": [
- {
- "handle": [
- {
- "body": "this should be second",
- "handler": "static_response"
- }
- ]
- }
- ]
- }
- ]
- }
- ]
- }
- ],
- "match": [
- {
- "host": [
- "foo.example.com"
- ]
- }
- ]
- },
- {
- "group": "group5",
- "handle": [
- {
- "handler": "subroute",
- "routes": [
- {
- "handle": [
- {
- "body": "this should be last",
- "handler": "static_response"
- }
- ]
- }
- ]
- }
- ]
- }
- ]
- }
- ],
- "terminal": true
- }
- ]
- }
- }
- }
- }
+*.example.com { + @foo host foo.example.com + handle @foo { + handle_path /strip* { + respond "this should be first" + } + handle { + respond "this should be second" + } + } + handle { + respond "this should be last" + } +} +---------- +{ + "apps": { + "http": { + "servers": { + "srv0": { + "listen": [ + ":443" + ], + "routes": [ + { + "match": [ + { + "host": [ + "*.example.com" + ] + } + ], + "handle": [ + { + "handler": "subroute", + "routes": [ + { + "group": "group5", + "handle": [ + { + "handler": "subroute", + "routes": [ + { + "group": "group2", + "handle": [ + { + "handler": "subroute", + "routes": [ + { + "handle": [ + { + "handler": "rewrite", + "strip_path_prefix": "/strip" + } + ] + }, + { + "handle": [ + { + "body": "this should be first", + "handler": "static_response" + } + ] + } + ] + } + ], + "match": [ + { + "path": [ + "/strip*" + ] + } + ] + }, + { + "group": "group2", + "handle": [ + { + "handler": "subroute", + "routes": [ + { + "handle": [ + { + "body": "this should be second", + "handler": "static_response" + } + ] + } + ] + } + ] + } + ] + } + ], + "match": [ + { + "host": [ + "foo.example.com" + ] + } + ] + }, + { + "group": "group5", + "handle": [ + { + "handler": "subroute", + "routes": [ + { + "handle": [ + { + "body": "this should be last", + "handler": "static_response" + } + ] + } + ] + } + ] + } + ] + } + ], + "terminal": true + } + ] + } + } + } + } }
\ No newline at end of file |