fix: login failure on U18 #1983

Merged
Sainan merged 2 commits from u18 into main 2025-05-05 04:57:44 -07:00
Showing only changes of commit b300efeb96 - Show all commits

View File

@ -22,7 +22,7 @@ app.use((req, _res, next) => {
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.
// U18 uses 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";
}