From 8572fca487d124518e46f4fad1919cf98c5ae56a Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 28 Jul 2024 18:27:42 +0300 Subject: fix bug where POST turned out to be a HTTP get when there are // in the URI --- internal/client/tui/submit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/client') diff --git a/internal/client/tui/submit.go b/internal/client/tui/submit.go index 3586244..90143d6 100644 --- a/internal/client/tui/submit.go +++ b/internal/client/tui/submit.go @@ -24,7 +24,7 @@ func submitMessage(ctx context.Context, conf client.ClientConfig, filePath strin servers, err := conf.Servers() if err == nil { var entry types.Entry - err = easyhttp.PostData(ctx, "/submit", conf.APIKey, &entry, servers...) + err = easyhttp.PostData(ctx, "submit", conf.APIKey, &entry, servers...) } return func() tea.Msg { -- cgit v1.2.3