We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9bcf37 commit 9b1613dCopy full SHA for 9b1613d
src/session/extra.lua
@@ -2,11 +2,15 @@ PublicSession.get_session_id = function(public, private)
2
return private.session_id
3
end
4
5
-PublicSession.accept_alert = function(public, private)
+PublicSession.accept_alert = function(_, private)
6
local result = private.fetch({
7
url = private.url .. "/session/" .. private.session_id .. "/alert/accept",
8
method = "POST",
9
- http_version = "1.1"
+ http_version = "1.1",
10
+ headers = {
11
+ ["Content-Type"] = "application/json"
12
+ },
13
+ body = {}
14
})
15
16
if result.status_code ~= 200 then
0 commit comments