Make sure to use the right HTTP method for the report endpoint
This commit is contained in:
@@ -65,6 +65,7 @@ const server = createServer((req, res) => {
|
|||||||
const abuseIpDbRes = await fetch(
|
const abuseIpDbRes = await fetch(
|
||||||
`https://api.abuseipdb.com/api/v2/report?${queryParams.toString()}`,
|
`https://api.abuseipdb.com/api/v2/report?${queryParams.toString()}`,
|
||||||
{
|
{
|
||||||
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Accept': 'application/json',
|
'Accept': 'application/json',
|
||||||
'Key': process.env.ABUSEIPDB_API_KEY,
|
'Key': process.env.ABUSEIPDB_API_KEY,
|
||||||
|
|||||||
Reference in New Issue
Block a user