Skip to content

Commit ad811a4

Browse files
Update src/Middleware.php
Co-authored-by: Jonathan Reinink <[email protected]>
1 parent 7144688 commit ad811a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Middleware.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ public function checkVersion(Request $request, Response $response)
9696
}
9797

9898
/**
99-
* Changes the status code during an Inertia redirect, so that the browser
100-
* makes the request as GET instead, avoiding unsupported method calls.
99+
* Changes the status code during redirects, ensuring they are made as
100+
* GET requests, preventing "MethodNotAllowedHttpException" errors.
101101
*
102102
* @param Request $request
103103
* @param Response $response

0 commit comments

Comments
 (0)