fix: login failure on U18
All checks were successful
Build / build (push) Successful in 1m10s
Build / build (pull_request) Successful in 1m37s

This commit is contained in:
Sainan 2025-05-05 05:18:12 +02:00
parent 1914fd8f10
commit f041c5161b

View File

@ -21,6 +21,12 @@ app.use((req, _res, next) => {
if (req.headers["content-encoding"] == "ezip" || req.headers["content-encoding"] == "e") { if (req.headers["content-encoding"] == "ezip" || req.headers["content-encoding"] == "e") {
req.headers["content-encoding"] = undefined; req.headers["content-encoding"] = undefined;
} }
// U18 and below use application/x-www-form-urlencoded even tho the data is JSON which Express doesn't like.
if (req.headers["content-type"] == "application/x-www-form-urlencoded") {
req.headers["content-type"] = "application/octet-stream";
}
next(); next();
}); });