Skip to content

Commit 359ae53

Browse files
author
Maksim Grafskiy
committed
fix nil ptr
1 parent 5ee6306 commit 359ae53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/http/options.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ type Options struct {
2929
}
3030

3131
func defaultOptions(c Config, options ...*Options) *Options {
32-
if options != nil {
32+
if options != nil && options[0] != nil {
3333
return options[0]
3434
}
3535

0 commit comments

Comments
 (0)