File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -47,12 +47,11 @@ public function __construct(UriInterface $uri)
47
47
public function handleRequest (RequestInterface $ request , callable $ next , callable $ first )
48
48
{
49
49
// Use the request URI as an identifier
50
- $ identifier = sha1 ((string ) ( string ) $ request ->getUri ());
50
+ $ identifier = sha1 ((string ) $ request ->getUri ());
51
51
52
52
// If the current URL is a result of a previous rewrite, then do nothing.
53
53
if (!array_key_exists ($ identifier , $ this ->alteredRequests )) {
54
- $ prefixedPath = $ this ->uri ->getPath ().$ request ->getUri ()->getPath ();
55
- $ prefixedUri = $ request ->getUri ()->withPath ($ prefixedPath );
54
+ $ prefixedUri = $ request ->getUri ()->withPath ($ this ->uri ->getPath ().$ request ->getUri ()->getPath ());
56
55
$ request = $ request ->withUri ($ prefixedUri );
57
56
58
57
// Store for future checks
You can’t perform that action at this time.
0 commit comments