already used fix

This commit is contained in:
Jesse Wierzbinski 2024-04-07 02:39:27 -10:00
parent ba712a33f3
commit 0d373b8866
No known key found for this signature in database
2 changed files with 1 additions and 2 deletions

View file

@ -111,7 +111,7 @@ export class LogManager {
(content_type.includes("application/x-www-form-urlencoded") ||
content_type.includes("multipart/form-data"))
) {
const formData = await req.formData();
const formData = await req.clone().formData();
for (const [key, value] of formData.entries()) {
if (value.toString().length < 300) {
string += ` ${key}: ${value.toString()}\n`;

View file

@ -74,7 +74,6 @@ export const createServer = (
// Check for bait user agents (regex)
for (const agent of config.http.bait.bait_user_agents) {
console.log(agent);
if (new RegExp(agent).test(ua)) {
const file = Bun.file(
config.http.bait.send_file ||