mirror of
https://github.com/versia-pub/server.git
synced 2025-12-07 00:48:18 +01:00
already used fix
This commit is contained in:
parent
ba712a33f3
commit
0d373b8866
|
|
@ -111,7 +111,7 @@ export class LogManager {
|
||||||
(content_type.includes("application/x-www-form-urlencoded") ||
|
(content_type.includes("application/x-www-form-urlencoded") ||
|
||||||
content_type.includes("multipart/form-data"))
|
content_type.includes("multipart/form-data"))
|
||||||
) {
|
) {
|
||||||
const formData = await req.formData();
|
const formData = await req.clone().formData();
|
||||||
for (const [key, value] of formData.entries()) {
|
for (const [key, value] of formData.entries()) {
|
||||||
if (value.toString().length < 300) {
|
if (value.toString().length < 300) {
|
||||||
string += ` ${key}: ${value.toString()}\n`;
|
string += ` ${key}: ${value.toString()}\n`;
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,6 @@ export const createServer = (
|
||||||
|
|
||||||
// Check for bait user agents (regex)
|
// Check for bait user agents (regex)
|
||||||
for (const agent of config.http.bait.bait_user_agents) {
|
for (const agent of config.http.bait.bait_user_agents) {
|
||||||
console.log(agent);
|
|
||||||
if (new RegExp(agent).test(ua)) {
|
if (new RegExp(agent).test(ua)) {
|
||||||
const file = Bun.file(
|
const file = Bun.file(
|
||||||
config.http.bait.send_file ||
|
config.http.bait.send_file ||
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue