Add default headers
This commit is contained in:
parent
81b25c7ebe
commit
00e936e34f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user