summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2022-09-23 16:47:59 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2022-09-23 16:47:59 -0600
commite747a9bb12bc644aebce369061a2dc0de567d8d9 (patch)
treef3730f34540933136910d02498b18eec59254cce
parentf7c1a51efb6d0e578c6f699b6f3498b5930cdd32 (diff)
Fix tests
-rw-r--r--caddytest/integration/caddyfile_adapt/php_fastcgi_expanded_form.txt4
-rw-r--r--caddytest/integration/caddyfile_adapt/php_fastcgi_handle_response.txt2
-rw-r--r--caddytest/integration/caddyfile_adapt/php_fastcgi_matcher.txt2
-rw-r--r--caddytest/integration/caddyfile_adapt/php_fastcgi_subdirectives.txt2
-rw-r--r--caddytest/integration/caddyfile_adapt/php_fastcgi_try_files_override.txt2
5 files changed, 6 insertions, 6 deletions
diff --git a/caddytest/integration/caddyfile_adapt/php_fastcgi_expanded_form.txt b/caddytest/integration/caddyfile_adapt/php_fastcgi_expanded_form.txt
index bb7c7f7..2fa2b79 100644
--- a/caddytest/integration/caddyfile_adapt/php_fastcgi_expanded_form.txt
+++ b/caddytest/integration/caddyfile_adapt/php_fastcgi_expanded_form.txt
@@ -8,7 +8,7 @@ route {
}
not path */
}
- redir @canonicalPath {path}/ 308
+ redir @canonicalPath {http.request.orig_uri.path}/ 308
# If the requested file does not exist, try index files
@indexFiles {
@@ -50,7 +50,7 @@ route {
"handler": "static_response",
"headers": {
"Location": [
- "{http.request.uri.path}/"
+ "{http.request.orig_uri.path}/"
]
},
"status_code": 308
diff --git a/caddytest/integration/caddyfile_adapt/php_fastcgi_handle_response.txt b/caddytest/integration/caddyfile_adapt/php_fastcgi_handle_response.txt
index dbb0871..70a0780 100644
--- a/caddytest/integration/caddyfile_adapt/php_fastcgi_handle_response.txt
+++ b/caddytest/integration/caddyfile_adapt/php_fastcgi_handle_response.txt
@@ -42,7 +42,7 @@
"handler": "static_response",
"headers": {
"Location": [
- "{http.request.uri.path}/"
+ "{http.request.orig_uri.path}/"
]
},
"status_code": 308
diff --git a/caddytest/integration/caddyfile_adapt/php_fastcgi_matcher.txt b/caddytest/integration/caddyfile_adapt/php_fastcgi_matcher.txt
index 488c525..d90b2cb 100644
--- a/caddytest/integration/caddyfile_adapt/php_fastcgi_matcher.txt
+++ b/caddytest/integration/caddyfile_adapt/php_fastcgi_matcher.txt
@@ -30,7 +30,7 @@ php_fastcgi @api localhost:9000
"handler": "static_response",
"headers": {
"Location": [
- "{http.request.uri.path}/"
+ "{http.request.orig_uri.path}/"
]
},
"status_code": 308
diff --git a/caddytest/integration/caddyfile_adapt/php_fastcgi_subdirectives.txt b/caddytest/integration/caddyfile_adapt/php_fastcgi_subdirectives.txt
index 90d1633..a04d66f 100644
--- a/caddytest/integration/caddyfile_adapt/php_fastcgi_subdirectives.txt
+++ b/caddytest/integration/caddyfile_adapt/php_fastcgi_subdirectives.txt
@@ -43,7 +43,7 @@ php_fastcgi localhost:9000 {
"handler": "static_response",
"headers": {
"Location": [
- "{http.request.uri.path}/"
+ "{http.request.orig_uri.path}/"
]
},
"status_code": 308
diff --git a/caddytest/integration/caddyfile_adapt/php_fastcgi_try_files_override.txt b/caddytest/integration/caddyfile_adapt/php_fastcgi_try_files_override.txt
index 4342786..a3381f6 100644
--- a/caddytest/integration/caddyfile_adapt/php_fastcgi_try_files_override.txt
+++ b/caddytest/integration/caddyfile_adapt/php_fastcgi_try_files_override.txt
@@ -46,7 +46,7 @@ php_fastcgi localhost:9000 {
"handler": "static_response",
"headers": {
"Location": [
- "{http.request.uri.path}/"
+ "{http.request.orig_uri.path}/"
]
},
"status_code": 308