From 00e936e34f5d6a7e9dc02529906125612b52861c Mon Sep 17 00:00:00 2001 From: NullBite Date: Fri, 20 Oct 2023 02:00:19 -0400 Subject: [PATCH] Add default headers --- cclink.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cclink.lua b/cclink.lua index 613344c..538430c 100644 --- a/cclink.lua +++ b/cclink.lua @@ -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