Skip to content

Commit

Permalink
fucking method to element for the final time bitch
Browse files Browse the repository at this point in the history
  • Loading branch information
killua-eu committed Feb 24, 2024
1 parent 5e842ae commit 7bd9b61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions glued/Controllers/ServiceController.php
Original file line number Diff line number Diff line change
Expand Up @@ -693,8 +693,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); }
}
}

Expand Down

0 comments on commit 7bd9b61

Please sign in to comment.