From 895f9669069cf6f1f0ae51306fe82aa580764cef Mon Sep 17 00:00:00 2001 From: cbarber Date: Fri, 20 Mar 2026 14:00:07 +0000 Subject: [PATCH] fix: correct curl invocation to use -X POST instead of positional POST curl treats { "POST", url, ... } as two positional URL arguments, making a GET request to http://POST before the real request. This causes an ~8 second stall on every heartbeat interval. Use -X POST to pass the HTTP method correctly. Authored By: opencode (anthropic/claude-sonnet-4-6) Reviewed By: Craig Barber (craigb@mojotech.com) --- lua/aw_watcher/aw_client.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/aw_watcher/aw_client.lua b/lua/aw_watcher/aw_client.lua index 01f992a..fbb9d3b 100644 --- a/lua/aw_watcher/aw_client.lua +++ b/lua/aw_watcher/aw_client.lua @@ -43,7 +43,7 @@ function Client.__post(self, url, data) local body = vim.fn.json_encode(data) - local args = { "POST", url, "-H", "Content-Type: application/json", "--data-raw", body } + local args = { "-X", "POST", url, "-H", "Content-Type: application/json", "--data-raw", body } local handle ---@diagnostic disable-next-line: missing-fields