mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-04 21:08:09 +03:00
Disable X-TachiIR-Version validation
This commit is contained in:
@@ -3,12 +3,5 @@ import { RequestHandler } from "express";
|
||||
export const ValidateIRClientVersion: RequestHandler = (req, res, next) => {
|
||||
const header = req.header("X-TachiIR-Version");
|
||||
|
||||
if (header !== "v2.0.0") {
|
||||
return res.status(400).json({
|
||||
success: false,
|
||||
description: "Invalid TachiIR client version.",
|
||||
});
|
||||
}
|
||||
|
||||
return next();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user