We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ba01b38 + c49e378 commit dc10d86Copy full SHA for dc10d86
lib/Github/HttpClient/Plugin/PathPrepend.php
@@ -28,7 +28,9 @@ public function __construct($path)
28
public function handleRequest(RequestInterface $request, callable $next, callable $first)
29
{
30
$currentPath = $request->getUri()->getPath();
31
- $uri = $request->getUri()->withPath($this->path.$currentPath);
+ if (strpos($currentPath, $this->path) !== 0) {
32
+ $uri = $request->getUri()->withPath($this->path.$currentPath);
33
+ }
34
35
$request = $request->withUri($uri);
36
0 commit comments