Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4fc3228

Browse files
committedMar 17, 2025··
fix(internal): update WithAPIVersion handler
1 parent 3f496ad commit 4fc3228

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎option/requestoption.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ type RequestOption = requestconfig.RequestOption
2727
// to use. While any value can be set here, invalid values are ignored and will recieve the
2828
// default value of today.
2929
func WithAPIVersion(value string) RequestOption {
30-
return func(r *requestconfig.RequestConfig) error {
30+
return requestconfig.RequestOptionFunc(func(r *requestconfig.RequestConfig) error {
3131
r.Request.Header.Set("api-version", value)
3232
return nil
33-
}
33+
})
3434
}
3535

3636
// WithBaseURL returns a RequestOption that sets the BaseURL for the client.

0 commit comments

Comments
 (0)
Please sign in to comment.