diff --git a/test-website/Caddyfile b/test-website/Caddyfile index 7183c2b..150c6b2 100644 --- a/test-website/Caddyfile +++ b/test-website/Caddyfile @@ -73,6 +73,14 @@ respond /502-response 502 + respond // "Hello you" 400 + + respond /double-slash/test1 "Hello you" 200 + respond /double-slash//test1 400 + + respond /double-slash/test2 "Hello you v1" 200 + respond /double-slash//test2 "Hello you v2" 200 + redir /301-internal-redirect-ok /internal_redirect_target.html 301 redir /301-external-redirect-ok https://www.example.com 301 redir /302-internal-redirect-ok /internal_redirect_target.html 302 diff --git a/test-website/Dockerfile b/test-website/Dockerfile index 9bb5b9b..3296bbf 100644 --- a/test-website/Dockerfile +++ b/test-website/Dockerfile @@ -1,5 +1,5 @@ FROM caddy:2.6.1-alpine -LABEL org.opencontainers.image.source https://github.com/openzim/warc2zim +LABEL org.opencontainers.image.source=https://github.com/openzim/warc2zim COPY Caddyfile /etc/caddy/Caddyfile diff --git a/test-website/content/double-slash.html b/test-website/content/double-slash.html new file mode 100644 index 0000000..343877a --- /dev/null +++ b/test-website/content/double-slash.html @@ -0,0 +1,26 @@ + + + + + + Test website + + + + + + + + + +

Double slash in URLs

+ + .// + ./double-slash//test1 + ./double-slash/test1 + ./double-slash/test2 + ./double-slash//test2 + + + + diff --git a/test-website/content/index.html b/test-website/content/index.html index 607c52f..83a5023 100644 --- a/test-website/content/index.html +++ b/test-website/content/index.html @@ -52,6 +52,7 @@
  • Redirect with http-equiv meta directive
  • Image with srcset
  • Form GET
  • +
  • Double Slash