Skip to content

Commit

Permalink
fix(run last): not modify body in order to use it again
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLeoP authored and NTBBloodbath committed Mar 22, 2024
1 parent c12c0b0 commit 9598c89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/rest-nvim/client/curl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ function client.request(request)
-- Request body
--
-- Create a copy of the request body table to remove the unneeded `__TYPE` metadata field later
local body = request.body
local body = vim.deepcopy(request.body)
if request.body.__TYPE == "json" then
body.__TYPE = nil

Expand Down

0 comments on commit 9598c89

Please sign in to comment.