diff options
| author | syuilo <4439005+syuilo@users.noreply.github.com> | 2024-09-22 12:32:01 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-22 12:32:01 +0900 |
| commit | 76408667f32ce71df7028ec33f39e62bebee59e4 (patch) | |
| tree | e389a99bf9bbcfc5db5bc06c93d63adafffeaad1 /packages/backend/src/misc | |
| parent | Check SPDX information properly (#14604) (diff) | |
| download | misskey-76408667f32ce71df7028ec33f39e62bebee59e4.tar.gz misskey-76408667f32ce71df7028ec33f39e62bebee59e4.tar.bz2 misskey-76408667f32ce71df7028ec33f39e62bebee59e4.zip | |
update deps (#14594)
* wip
* Update ClientServerService.ts
* eslint
* Update fetch-resource.ts
* wip
Diffstat (limited to 'packages/backend/src/misc')
| -rw-r--r-- | packages/backend/src/misc/fastify-hook-handlers.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/backend/src/misc/fastify-hook-handlers.ts b/packages/backend/src/misc/fastify-hook-handlers.ts index 3e1c099e00..fa3ef0a267 100644 --- a/packages/backend/src/misc/fastify-hook-handlers.ts +++ b/packages/backend/src/misc/fastify-hook-handlers.ts @@ -8,7 +8,7 @@ import type { onRequestHookHandler } from 'fastify'; export const handleRequestRedirectToOmitSearch: onRequestHookHandler = (request, reply, done) => { const index = request.url.indexOf('?'); if (~index) { - reply.redirect(301, request.url.slice(0, index)); + reply.redirect(request.url.slice(0, index), 301); } done(); }; |