Skip to content

Commit

Permalink
feat: support PATCH method
Browse files Browse the repository at this point in the history
  • Loading branch information
jellydn committed Oct 31, 2023
1 parent 5426305 commit fba0251
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/hurl/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ local function find_http_verb(line, current_line_number)
return nil
end

local verbs = { 'GET', 'POST', 'PUT', 'DELETE' }
local verbs = { 'GET', 'POST', 'PUT', 'DELETE', 'PATCH' }
local verb_start, verb_end, verb

for _, v in ipairs(verbs) do
Expand Down Expand Up @@ -277,7 +277,7 @@ function M.setup()
opts.fargs = vim.list_extend(opts.fargs, { '--to-entry', result.current })
run_current_file(opts.fargs)
else
vim.notify('hurl: no GET/POST/PUT/DELETE found in the current line', vim.log.levels.INFO)
vim.notify('hurl: no http method found in the current line', vim.log.levels.INFO)
end
end, { nargs = '*', range = true })
end
Expand Down

0 comments on commit fba0251

Please sign in to comment.