Add default headers
This commit is contained in:
parent
81b25c7ebe
commit
00e936e34f
@ -8,6 +8,9 @@ WEBHOOKS={
|
|||||||
-- example
|
-- example
|
||||||
-- PAYLOAD="meow! :3"
|
-- PAYLOAD="meow! :3"
|
||||||
PAYLOAD=nil
|
PAYLOAD=nil
|
||||||
|
HEADERS={
|
||||||
|
["Content-Type"] = "text/plain",
|
||||||
|
}
|
||||||
|
|
||||||
while true do
|
while true do
|
||||||
state=false
|
state=false
|
||||||
@ -17,5 +20,5 @@ while true do
|
|||||||
state=true
|
state=true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
http.request(WEBHOOKS[state], PAYLOAD)
|
http.request(WEBHOOKS[state], PAYLOAD, HEADERS)
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user