mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
already used fix
This commit is contained in:
parent
ba712a33f3
commit
0d373b8866
2 changed files with 1 additions and 2 deletions
|
|
@ -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`;
|
||||
|
|
|
|||
|
|
@ -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 ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue