Skip to content

Commit

Permalink
fix(client): requests with undefined studentID
Browse files Browse the repository at this point in the history
  • Loading branch information
oddyamill committed Dec 4, 2024
1 parent f5348d4 commit f7a4cee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/client/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func requestWithClient[T any](client *Client, url string, method string) (*T, er
}
}

if !client.User.Cache {
if !client.User.Cache || client.User.StudentID == nil {
req.Header.Set(cacheHeader, "no")
}

Expand Down

0 comments on commit f7a4cee

Please sign in to comment.