Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsandeep committed Feb 29, 2024
2 parents d8e6f97 + ce31a19 commit ea2ce9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ func (c Client) makeRequest() ([]byte, error) {
return nil, err
}
if PDCPApiKey == "" {
gologger.Error().Label("asnmap-api").Msgf("missing or invalid api key (get your free api key from https://cloud.projectdiscovery.io)")
gologger.Error().Label("asnmap-api").Msgf("missing or invalid api key (get free api & configure it from https://cloud.projectdiscovery.io/?ref=api_key)")
return nil, ErrUnAuthorized
}
req.Header.Set("X-PDCP-Key", PDCPApiKey)
Expand All @@ -183,7 +183,7 @@ func (c Client) makeRequest() ([]byte, error) {
}
defer res.Body.Close()
if res.StatusCode == http.StatusUnauthorized {
gologger.Error().Msgf("missing or invalid api key (get your free api key from https://cloud.projectdiscovery.io)")
gologger.Error().Msgf("missing or invalid api key (get free api & configure it from https://cloud.projectdiscovery.io/?ref=api_key)")
return nil, ErrUnAuthorized
}

Expand Down

0 comments on commit ea2ce9c

Please sign in to comment.