diff options
| author | Paul Buetow <paul@buetow.org> | 2024-07-28 18:27:42 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2024-07-28 18:27:42 +0300 |
| commit | 8572fca487d124518e46f4fad1919cf98c5ae56a (patch) | |
| tree | e6f94e230422d3c16043909c768eba3adf3c92d6 /internal/client | |
| parent | 15e39ae8f63021fd599f6c1f3cfab9bf9c1885b0 (diff) | |
fix bug where POST turned out to be a HTTP get when there are // in the URI
Diffstat (limited to 'internal/client')
| -rw-r--r-- | internal/client/tui/submit.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |
