diff options
author | Matthew Holt <mholt@users.noreply.github.com> | 2021-04-16 11:17:15 -0600 |
---|---|---|
committer | Matthew Holt <mholt@users.noreply.github.com> | 2021-04-16 11:17:22 -0600 |
commit | 96bb3659299ae5ef28ffb3f9a23e16417c570924 (patch) | |
tree | e8cec60fab91195aa2df86ed813a8594f5a6809a /caddytest/integration/caddyfile_adapt | |
parent | 00e12aa918aedcfae3a69292efb70de615e172dd (diff) |
httpcaddyfile: Take into account host scheme/port (fix #4113)
Diffstat (limited to 'caddytest/integration/caddyfile_adapt')
-rw-r--r-- | caddytest/integration/caddyfile_adapt/http_only_on_hostless_block.txt | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/caddytest/integration/caddyfile_adapt/http_only_on_hostless_block.txt b/caddytest/integration/caddyfile_adapt/http_only_on_hostless_block.txt new file mode 100644 index 0000000..9ccc59e --- /dev/null +++ b/caddytest/integration/caddyfile_adapt/http_only_on_hostless_block.txt @@ -0,0 +1,28 @@ +# Issue #4113 +:80, http://example.com { + respond "foo" +} +---------- +{ + "apps": { + "http": { + "servers": { + "srv0": { + "listen": [ + ":80" + ], + "routes": [ + { + "handle": [ + { + "body": "foo", + "handler": "static_response" + } + ] + } + ] + } + } + } + } +}
\ No newline at end of file |