diff --git a/cli/fpb/fpb.go b/cli/fpb/fpb.go index a74c064..78c1255 100644 --- a/cli/fpb/fpb.go +++ b/cli/fpb/fpb.go @@ -141,6 +141,7 @@ Example usage: return fmt.Errorf("creating request: %w", err) } req.Header.Set("Content-Type", "application/x-www-form-urlencoded") + req.Header.Set("User-Agent", "fpb/"+version) if creds != nil { req.SetBasicAuth(creds.Username, creds.Password) } diff --git a/cli/fput/fput.go b/cli/fput/fput.go index c8bc215..8c11744 100644 --- a/cli/fput/fput.go +++ b/cli/fput/fput.go @@ -59,6 +59,7 @@ var command = &cobra.Command{ return fmt.Errorf("creating request: %w", err) } req.Header.Set("Content-Type", writer.FormDataContentType()) + req.Header.Set("User-Agent", "fput/"+version) if creds != nil { req.SetBasicAuth(creds.Username, creds.Password) }