Skip to content

Commit

Permalink
fix get regression
Browse files Browse the repository at this point in the history
  • Loading branch information
killua-eu committed Feb 23, 2024
1 parent 7202225 commit 38d284f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 15 deletions.
4 changes: 2 additions & 2 deletions glued/Controllers/ServiceController.php
Original file line number Diff line number Diff line change
Expand Up @@ -692,8 +692,8 @@ public function objects_r1(Request $request, Response $response, array $args = [
$wm = "AND o.object = uuid_to_bin(? ,1)";
$pa[] = $args['object'];
$link = $this->generateRetrievalUri($args['object'], $args['bucket']);
if (array_key_exists('method', $args)) {
if ($args['method'] == 'get') { return $response->withHeader('Location', $link)->withStatus(302); }
if (array_key_exists('element', $args)) {
if ($args['element'] == 'get') { return $response->withHeader('Location', $link)->withStatus(302); }
}
}
$q = "
Expand Down
10 changes: 0 additions & 10 deletions package-lock.json

This file was deleted.

3 changes: 0 additions & 3 deletions package.json

This file was deleted.

0 comments on commit 38d284f

Please sign in to comment.