From 00623d9eb6e61b4a10eb987bf173ff2ec79d43cc Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Fri, 24 Sep 2021 08:48:11 +0200 Subject: [PATCH] Fixed DefaultUserAgent after clarification with Troy Hunt --- hibp.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hibp.go b/hibp.go index 20c015b..04f2f1a 100644 --- a/hibp.go +++ b/hibp.go @@ -12,7 +12,7 @@ import ( ) // Version represents the version of this package -const Version = "1.0.0" +const Version = "1.0.1" // BaseUrl is the base URL for the majority of API calls const BaseUrl = "https://haveibeenpwned.com/api/v3" @@ -20,7 +20,7 @@ const BaseUrl = "https://haveibeenpwned.com/api/v3" // DefaultUserAgent defines the default UA string for the HTTP client // Currently the URL in the UA string is comment out, as there is a bug in the HIBP API // not allowing multiple slashes -const DefaultUserAgent = `go-hibp v` + Version // + ` - https://github.com/wneessen/go-hibp` +const DefaultUserAgent = `go-hibp v` + Version + ` (https://github.com/wneessen/go-hibp)` // Client is the HIBP client object type Client struct {