Files
wool_scripts/Scripts/template/req_replace_url_headers.js
2025-06-30 21:59:46 +08:00

15 lines
330 B
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* @author fmz200
* @date 2024-01-22 21:03:00
* @function 部分APP收集用户信息将上传的URL和body内容换成无效内容
*/
let req_path = $request.path;
if (req_path && req_path.includes("?")) {
req_path = req_path.substring(0, req_path.index("?"));
}
// 还可以修改headers
$done({path: req_path});