1
0
Fork 0
forked from svrjs/svrjs

Lint out the codebase

This commit is contained in:
Dorian Niemiec 2024-08-28 21:46:20 +02:00
parent 9fa194b33d
commit ce2a73dbd3

View file

@ -14,7 +14,7 @@ module.exports = (legacyMod) => {
let ext = req.parsedURL.pathname.match(/[^/]\.([^.]+)$/); let ext = req.parsedURL.pathname.match(/[^/]\.([^.]+)$/);
if (!ext) ext = ""; if (!ext) ext = "";
else ext = ext[1].toLowerCase(); else ext = ext[1].toLowerCase();
// Function to parse incoming POST data from the request // Function to parse incoming POST data from the request
const parsePostData = (options, callback) => { const parsePostData = (options, callback) => {
// If the request method is not POST, return a 405 Method Not Allowed error // If the request method is not POST, return a 405 Method Not Allowed error