src/main/js/servlet/corsproxy/url.js
import url from 'node:url'
/**
*
* @param {Object} req
* @returns {Object}
*/
url.parseRequest = (req) => {
let path = req.url.slice(1)
path = /^https?:/.test(path) ? path : req.protocol + '://' + path
return url.parse(path) // eslint-disable-line
}
export {default} from 'node:url'