diff --git a/logpasta.go b/logpasta.go index 9b0f3ee..c7c3b10 100644 --- a/logpasta.go +++ b/logpasta.go @@ -11,7 +11,7 @@ import ( "github.com/ripexz/logpasta/clipboard" ) -var version = "v0.2.0" +var version = "v0.2.1" func main() { initLogger() diff --git a/request.go b/request.go index 885c8ba..8185d3a 100644 --- a/request.go +++ b/request.go @@ -43,6 +43,7 @@ func saveLog(conf *Config, content string) (string, error) { } req.Header.Add("Content-Type", "application/json") req.Header.Set("Content-Encoding", "gzip") + req.Header.Set("User-Agent", fmt.Sprintf("Logpasta CLI %s", version)) res, err := client.Do(req) if err != nil {