Skip to content

Commit ba5cf6e

Browse files
committed
BUGFIX: proxy query string to backend prunner as well
1 parent a15e390 commit ba5cf6e

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

Classes/Controller/ProxyController.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,14 @@ public function indexAction(string $path, string $subpath)
4141
if ($subpath !== '') {
4242
$apiPath .= '/' . $subpath;
4343
}
44+
$queryString = $this->request->getHttpRequest()->getUri()->getQuery();
4445
$url = rtrim($this->apiBaseUrl, '/') . '/' . $apiPath;
4546

47+
if (strlen($queryString) > 0) {
48+
$url .= '?' . $queryString;
49+
}
50+
51+
4652
// Create JWT token for user
4753

4854
if (!empty($this->jwtSecret)) {
@@ -55,7 +61,7 @@ public function indexAction(string $path, string $subpath)
5561
} catch (ParseException $e) {
5662
$this->response->setContentType('application/json');
5763
$this->response->setStatusCode(500);
58-
return json_encode(['error' => 'Invalid prunner configuration']);
64+
return json_encode(['error' => 'Invalid prunner configuration (could not read JWT secret)']);
5965
}
6066
}
6167

0 commit comments

Comments
 (0)