Skip to content

Commit 59180bd

Browse files
author
Greg Bowler
committed
feature: force ending slash
1 parent 94deb41 commit 59180bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Middleware/RequestHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function handle(
7777
// 307 is used here to preserve any POST data that may be in the request.
7878
if(!str_ends_with($uriPath, "/")) {
7979
return $response
80-
->withHeader("Location", $requestUri)
80+
->withHeader("Location", "$requestUri/")
8181
->withStatus(307);
8282
}
8383

0 commit comments

Comments
 (0)