Skip to content

Commit

Permalink
add user agent
Browse files Browse the repository at this point in the history
  • Loading branch information
ripexz committed Jun 2, 2019
1 parent bff93d1 commit 4f8a5a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion logpasta.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/ripexz/logpasta/clipboard"
)

var version = "v0.2.0"
var version = "v0.2.1"

func main() {
initLogger()
Expand Down
1 change: 1 addition & 0 deletions request.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 4f8a5a4

Please sign in to comment.