Make sure to use the right HTTP method for the report endpoint

This commit is contained in:
2026-01-17 09:23:15 +01:00
parent 21c3d2e194
commit 3bd264f974

View File

@@ -65,6 +65,7 @@ const server = createServer((req, res) => {
const abuseIpDbRes = await fetch(
`https://api.abuseipdb.com/api/v2/report?${queryParams.toString()}`,
{
method: 'POST',
headers: {
'Accept': 'application/json',
'Key': process.env.ABUSEIPDB_API_KEY,