Skip to content

Commit 48fe19c

Browse files
fix: don't encode @ character (fix #453)
1 parent f2eb2d2 commit 48fe19c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/rest-nvim/utils.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ local uv = vim.uv or vim.loop
2121
function utils.escape(str, only_necessary)
2222
local ignore = "%w%-%.%_%~%+"
2323
if only_necessary then
24-
ignore = ignore .. "%:%/%?%=%&%#"
24+
ignore = ignore .. "%:%/%?%=%&%#%@"
2525
end
2626
local pattern = "([^" .. ignore .. "])"
2727
local encoded = string.gsub(str, pattern, function(c)

0 commit comments

Comments
 (0)