Skip to content

Commit

Permalink
fix: include=0 not included in request
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristian Vidmar committed May 20, 2022
1 parent 346817a commit 798c975
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion query.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,9 @@ func (q *Query) Values() url.Values {
}
params.Set("include", strconv.Itoa(int(q.include)))
}

if q.include == 0 {
params.Set("include", "0")
}
if q.contentType != "" {
params.Set("content_type", q.contentType)
}
Expand Down

0 comments on commit 798c975

Please sign in to comment.