Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
HybridFNBR committed May 20, 2024
1 parent bd65c7c commit 3353ffa
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions config/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,14 @@ module.exports.http = {
if(req.originalUrl = "/fortnite/api/cloudstorage/user/*" && req.method == "PUT"){
var rawParser = require("body-parser").raw({type: "*/*"});
req.setEncoding("latin1");
rawParser(req, res, (err) => {
req.rawBody = ""
req.on("data", (chunk) => {
req.rawBody += chunk
});
req.on("end", () => next());
fs.writeFileSync(path.join(__dirname, `../ClientSettings/s${versionGlobal}/ClientSettings.sav`), req.rawBody, 'latin1');
res.status(204).end();
});
rawParser(req, res, (err) => {
req.rawBody = ""
req.on("data", (chunk) => req.rawBody += chunk)
req.on("end", () => {
fs.writeFileSync(path.join(__dirname, `../ClientSettings/s${versionGlobal}/ClientSettings.sav`), req.rawBody, 'latin1');
});
});
res.status(204).end();
}
}
catch{}
Expand Down

0 comments on commit 3353ffa

Please sign in to comment.