Skip to content

Commit a79a183

Browse files
chore(docs): improve security documentation (#59)
1 parent 5c3712e commit a79a183

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: option/requestoption.go

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ import (
2424
type RequestOption = requestconfig.RequestOption
2525

2626
// WithBaseURL returns a RequestOption that sets the BaseURL for the client.
27+
//
28+
// For security reasons, ensure that the base URL is trusted.
2729
func WithBaseURL(base string) RequestOption {
2830
u, err := url.Parse(base)
2931
if err != nil {

0 commit comments

Comments
 (0)