Skip to content

Commit

Permalink
misc
Browse files Browse the repository at this point in the history
  • Loading branch information
AMD-NICK committed Sep 5, 2024
1 parent a6f2858 commit b2b5f35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/http_requests.lua
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function M.request(t, cb)
local struct = {
url = t[2],
method = t[1],
parameters = t.params, -- для GET под капотом добавляет к ссылке
parameters = t.params, -- для GET под капотом добавляет к ссылке через http.build_query. Для POST - body в формате form-urlencoded
headers = t.headers,
body = t.json and json_encode(t.json) or t.data,
type = t.headers and t.headers["content-type"],
Expand Down

0 comments on commit b2b5f35

Please sign in to comment.