Skip to content

Commit

Permalink
Refactor User-Agent header in downloadImage function
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptofyre committed Sep 22, 2024
1 parent 57a8749 commit d3a647d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func downloadImage(url string) (image.Image, string, error) {

resp, err := client.R().
SetDoNotParseResponse(true).
SetHeader("User-Agent", "YourAppName/1.0").
SetHeader("User-Agent", "AniArt/1.0").
Get(url)

if err != nil {
Expand Down

0 comments on commit d3a647d

Please sign in to comment.