Skip to content

Commit

Permalink
Update talebook.go
Browse files Browse the repository at this point in the history
  • Loading branch information
hellojukay authored Jan 12, 2024
1 parent 74a51cc commit 4c6f5b8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions talebook.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ func (b Book) String() string {
func (tale *TaleBook) Request(req *http.Request) (*http.Response, error) {
return tale.tryRequest(req, 0)
}

func (tale *TaleBook) tryRequest(req *http.Request, count int) (*http.Response, error) {
if tale.userAgent != "" {
req.Header.Set("User-Agent", tale.userAgent)
Expand Down

0 comments on commit 4c6f5b8

Please sign in to comment.