Update sessionrecording/connect.go

Co-authored-by: David Bond <davidsbond@users.noreply.github.com>
Signed-off-by: Tom Meadows <tom@tmlabs.co.uk>
This commit is contained in:
Tom Meadows 2025-09-18 14:28:12 +01:00 committed by GitHub
parent 4b751921de
commit e88c47edb3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -141,7 +141,7 @@ func SendEvent(ctx context.Context, ap netip.AddrPort, event io.Reader, dial net
req, err := http.NewRequestWithContext(ctx, "POST", fmt.Sprintf("http://%s/v2/event", ap.String()), event)
if err != nil {
return fmt.Errorf("error creating request: %v", err)
return fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Content-Type", "application/json")