Skip to content

Commit

Permalink
add contact information to useragent
Browse files Browse the repository at this point in the history
  • Loading branch information
kaitoyama committed Sep 4, 2023
1 parent ba48c82 commit c94b458
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/ogp/parser/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func ParseMetaForURL(url *url.URL) (*opengraph.OpenGraph, *DefaultPageMeta, erro
return nil, nil, ErrNetwork
}

req.Header.Add("user-agent", `bot`)
req.Header.Add("user-agent", "traq-ogp-bot; contact: github.com/traPtitech/traQ")

resp, err := client.Do(req)
if err != nil {
Expand Down

0 comments on commit c94b458

Please sign in to comment.