From 6bd160a68dac55f61b28c7631f9985320daf7755 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 29 Jun 2023 11:35:25 +0200 Subject: Fix 400 error on resumable re-upload --- server/helpers/express-utils.ts | 8 -------- 1 file changed, 8 deletions(-) (limited to 'server/helpers/express-utils.ts') diff --git a/server/helpers/express-utils.ts b/server/helpers/express-utils.ts index 82dd4c178..783097e55 100644 --- a/server/helpers/express-utils.ts +++ b/server/helpers/express-utils.ts @@ -1,7 +1,6 @@ import express, { RequestHandler } from 'express' import multer, { diskStorage } from 'multer' import { getLowercaseExtension } from '@shared/core-utils' -import { HttpStatusCode } from '../../shared/models/http/http-error-codes' import { CONFIG } from '../initializers/config' import { REMOTE_SCHEME } from '../initializers/constants' import { isArray } from './custom-validators/misc' @@ -59,12 +58,6 @@ function getHostWithPort (host: string) { return host } -function badRequest (_req: express.Request, res: express.Response) { - return res.type('json') - .status(HttpStatusCode.BAD_REQUEST_400) - .end() -} - function createReqFiles ( fieldNames: string[], mimeTypes: { [id: string]: string | string[] }, @@ -126,7 +119,6 @@ export { getHostWithPort, createAnyReqFiles, isUserAbleToSearchRemoteURI, - badRequest, createReqFiles, cleanUpReqFiles, getCountVideos -- cgit v1.2.3