mirror of
https://github.com/CFC-Servers/cfc_network_promises.git
synced 2025-03-04 03:03:19 -05:00
Added json encoded body to http requests
This commit is contained in:
parent
fde331efa6
commit
fedec45796
@ -86,6 +86,9 @@ function NP.http.requestIndef( method, url, overrides )
|
||||
|
||||
table.Merge( struct, overrides )
|
||||
struct.headers.Authorization = overrides.authToken
|
||||
if struct.parameters then
|
||||
struct.body = util.TableToJSON( struct.parameters )
|
||||
end
|
||||
|
||||
HTTP( struct )
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user