Skip to content

Commit 9598c89

Browse files
TheLeoPNTBBloodbath
authored andcommitted
fix(run last): not modify body in order to use it again
1 parent c12c0b0 commit 9598c89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/rest-nvim/client/curl.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ function client.request(request)
228228
-- Request body
229229
--
230230
-- Create a copy of the request body table to remove the unneeded `__TYPE` metadata field later
231-
local body = request.body
231+
local body = vim.deepcopy(request.body)
232232
if request.body.__TYPE == "json" then
233233
body.__TYPE = nil
234234

0 commit comments

Comments
 (0)