Skip to content

Commit 9b1613d

Browse files
added alert suport
1 parent b9bcf37 commit 9b1613d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/session/extra.lua

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,15 @@ PublicSession.get_session_id = function(public, private)
22
return private.session_id
33
end
44

5-
PublicSession.accept_alert = function(public, private)
5+
PublicSession.accept_alert = function(_, private)
66
local result = private.fetch({
77
url = private.url .. "/session/" .. private.session_id .. "/alert/accept",
88
method = "POST",
9-
http_version = "1.1"
9+
http_version = "1.1",
10+
headers = {
11+
["Content-Type"] = "application/json"
12+
},
13+
body = {}
1014
})
1115

1216
if result.status_code ~= 200 then

0 commit comments

Comments
 (0)