Skip to content

Commit 05c0c49

Browse files
meinsideqiaodev
andauthored
fix: Fix error "assignment to entry in nil map" of Files.Upload() when config.HTTPOptions is nil (#235)
Current code is nil-checking `config.HTTPOptions.Headers`, not `httpOptions`. Also, `config` is not used afterward, so setting `config.HTTPOptions.Headers` to an empty `http.Header` is not needed. Co-authored-by: happy-qiao <[email protected]>
1 parent f09dfab commit 05c0c49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

files.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)