Add default headers

This commit is contained in:
NullBite 2023-10-20 02:00:19 -04:00
parent 81b25c7ebe
commit 00e936e34f
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A

View File

@ -8,6 +8,9 @@ WEBHOOKS={
-- example
-- PAYLOAD="meow! :3"
PAYLOAD=nil
HEADERS={
["Content-Type"] = "text/plain",
}
while true do
state=false
@ -17,5 +20,5 @@ while true do
state=true
end
end
http.request(WEBHOOKS[state], PAYLOAD)
http.request(WEBHOOKS[state], PAYLOAD, HEADERS)
end