mirror of
https://github.com/zoriya/flood.git
synced 2026-06-02 02:56:05 +00:00
AddTorrentByFile: use base64 instead of Blob to transfer file
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
import type {Request, Response, NextFunction} from 'express';
|
||||
|
||||
export default (key: string) => (req: Request, _res: Response, next: NextFunction) => {
|
||||
const value = req.body && req.body[key];
|
||||
|
||||
if (value && typeof value === 'string') {
|
||||
req.body[key] = value === 'true';
|
||||
}
|
||||
|
||||
next();
|
||||
};
|
||||
Reference in New Issue
Block a user